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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -