YouTip LogoYouTip

Sel Onlychild

# jQuery :only-child Selector [![Image 3: jQuery Selector](#) jQuery Selector](#) ## Example Select each

element that is the only child of its parent element: $("p:only-child") [Try it Β»](#) * * * ## Definition and Usage The :only-child selector selects each element that is the only child of its parent element. * * * ## Syntax $(":only-child") * * jQuery Selector](#)

← Plugins Base DraggableCpp Examples Monkey Eating Pea β†’