jQuery: make selection from sub-tree
By default, jQuery selectors operate on all items in the DOM. There is an overloaded search function, however, that allows the creation of selectors based on a subtree.
This will search for elements that match the selector and are contained within the subtree element.
Comments