Beautiful Element Creation with jQuery

Beautiful Element Creation with jQuery — Article — The Nerdary.

This is super super sweet. Creating elements the ‘old’ way did feel a little wrong, but this is all sorts of right (from the article):

$('<div />', {
  'id': 'charles',
  'click': function(e){
    e.preventDefault();
    $(this).animate({opacity: 0.7}); 
  }
});

 

So much nicer, and more… programmatic. I like where this is going. To be implemented in my processes immediately. More in the docs.