Shorthand for the jQuery ready event

Saturday, June 4, 2011

The explicit and verbose way:

$(document).ready(function (){
    // do something here ...
});

The shorthand:

$(function (){
    // do something here ...
});

This entry was tagged jQuery

comments powered by Disqus

© 2009-2013 lxneng.com. All rights reserved. Powered by Pyramid

go to Top