jQuery parent descendant Selector (original) (raw)
Last Updated : 11 Jul, 2025
jQuery parent descendant Selector selects every element which is a descendant to a specific(parent) element.
Syntax:
$("parent descendant")
Example 1: In this example, we are using parent descendant selector.
html `
This div element has descendant span:
DESCENDANT ELEMENT
`
Output:

Example 2: Here is another example, of parent descendant selector.
HTML `
This div element has descendant span:
DESCENDANT ELEMENT
Change color
`
Output:
