Tuesday, May 31, 2011

Jquery mistake you 're probaly making

  1. Selector Perfomance :
  2. Event binding :
  3. What is different between live method and delegate method?

    $('li',ul).live('click',function(){});

    $(ul).delegate('li','click',function(){});

    Initialization performance!

    .live() will execute the selector at init,.delegate() will not

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews