Tutorials References Exercises Videos Menu
Free Website Get Certified Pro

jQuery :empty Selector

❮ jQuery Selectors

Example

Select all empty elements:

$(":empty")
Try it Yourself »

Definition and Usage

The :empty selector selects empty elements.

An empty element is an element without child elements or text.


Syntax

$(":empty")

❮ jQuery Selectors