Monday By Noon

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.

There's a conversation brewing

No comments quite yet.

By all means, contribute

Leave a comment

Powered by Fusion

This article is so meta

Published January 18th, 2011

Random article

Loading...

My new ebook: Client Oriented WordPress Development is on sale now!