Tips on jQuery selector.
-
Select multiple elements.
jQuery('element1, element2, element3') ;
-
Select a particular type of elements within an element.
jQuery('tr', 'element1');
This selects all the
tr
elements inside element1.
The same thing can be achieved using:jQuery('element1').find('tr');
or
jQuery('element1 tr');
Written by tmaster
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#