Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

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