Latest web development tutorials

jQuery: empty Selector

jQuery selector jQuery selector

Examples

Select all empty elements:

$(":empty")

try it"

Definition and Usage

: Empty selector to select an empty element.

Empty element refers to the element that has no child elements or text.


grammar

$(":empty")


jQuery selector jQuery selector