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
trelements 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
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#