jQuery :only-child Selector
Example
Select every element that is the only child of its parent
element:
$("p:only-child")
Try it »
Definition and Usage
The :only-child selector selects every element that is the only child of its parent.
Syntax
$(":only-child")
jQuery selector