Jquery selects the child control "& gt;": matches all child elements under the given parent element. The other is to match all child elements under the given ancestor element, the specific overview and examples are as follows. If you are interested, refer
Parent> child
Overview
Match All child elements under a given parent Element
Parameters
ParentSelector any valid Selector
ChildSelector is used to match the selector of an element, and it is a child element of the first selector.
Example
Description:
Matches all the child input elements in the form.
HTML code:
The Code is as follows:
JQuery code:
The Code is as follows:
$ ("Form> input ")
Result:
The Code is as follows:
[]
Ancestor descendant
Overview
Match all descendant elements under a given ancestor Element
Parameters
AncestorSelector any valid Selector
DescendantSelector is used to match the selector of an element and is the descendant element of the first selector.
Example
Description:
Find all input elements in the form
HTML code:
The Code is as follows:
JQuery code:
The Code is as follows:
$ ("Form input ")
Result:
The Code is as follows:
[,]