THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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