jQuery :empty Selector

jQuery Selectors 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 jQuery Selectors


SHARE THIS PAGE

COLOR PICKER

colorpicker





Search w3schools.com:

Translate w3schools.com: