Shorthand for just $(document) in jQuery -
i noticed in jquery docs of 1.4, calling $() no args returns empty set rather $(document). http://api.jquery.com/jquery/#returning-empty-set
so, there no other shorthand $(document)?
i ask because can't decide uglier if i'm trying select element id have in variable: $("#" + myid) or $(document).find(myid).
thanks.
you can make own alias:
$d = $(document);
Comments
Post a Comment