jQuery :empty Selector

Example

Select each empty element:

$(':empty')

Try It Yourself

Definition and Usage

The :empty selector selects empty elements.

An empty element refers to an element that does not contain any child elements or text.

Syntax

$(':empty')