I know that you can do this, but every time I go to Google, I get how to select all the elements of a particular tag.
So for example:
alert($('#my-wrapper').someJSMethod());
{...}
<div id="my-wrapper"></div>
Actually will warn "DIV". By the way, I select elements with jQuery.
source
share