Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery :empty selector

jQuery :empty selector

jQuery selector jQuery selector

Example

Select all empty elements:

$(":empty")

Try it »


Definition and Usage

The :empty selector selects empty elements.

Empty elements are elements that do not contain child elements or text.


Syntax

$(":empty")


jQuery selector jQuery selector