Descendant Selector

Syntax

$("ancestor descendant")

Description

Descendant Selector selects all the elements that are the descendant of the specified ancestors, which could be a child, grandchild, great-grandchild, and so on., The below example is used to find all the descendant elements from a given ancestor in a form

Example Code

Result:





Sibling to form:




Ask Questions

Ask Question