Easy Tutorial
❮ Ajax Ajaxstart Traversing Parent ❯

jQuery :only-child Selector

jQuery Selectors

Example

Selects every <p> element that is the only child of its parent:


Definition and Usage

The :only-child selector selects every element that is the only child of its parent.


Syntax


jQuery Selectors

❮ Ajax Ajaxstart Traversing Parent ❯