Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You have a set of selected DOM elements (or a single element) and want to find descendant (children) elements within the context of the currently selected elements.
Use the .find() method to create a new wrapper set of elements based on the context of the current set and their descendants. For example, say that you have a web page that contains several paragraphs. Encapsulated inside of these paragraphs are words that are emphasized (italic). If you’d like to select only <em> elements contained within <p> elements, you could do so like this: