Beautiful Element Creation with jQuery

Posted: January 18, 2011 Comments

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){
    $(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.

Get my newsletter

Receive periodic updates right in the mail!

  • This field is for validation purposes and should be left unchanged.

Leave a Reply

Your email address will not be published. Required fields are marked *