jQuery :empty Selector (original) (raw)

Last Updated : 11 Jul, 2025

The ****:empty selector** in **jQuery is used to select empty elements.

**Syntax:

$(":empty")

**Parameter: The :empty selector contains a single parameter **empty which is mandatory and used to select an empty element which is an element without child elements or text.

**Example 1: This example uses :empty selector to select an element position in a table.

HTML `

jQuery :empty() Selector

GeeksForGeeks

jQuery :empty() Selector

Name Contact Country
Geeks 1 India
Geeks 2 2345
Geeks 3 3456 India
Geeks 4 4567 India
Geeks 5 5678 U.S.
6789 Austrialia
Geeks 7 India

`

**Output:

**Example 2: This example use : empty selector to select an empty element.

HTML `

jQuery :empty() Selector

GeeksforGeeks

`

**Output: