English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The :empty selector selects empty elements. An empty element refers to an element that does not contain any child elements or text.
$(':empty')
Select all empty elements:
$('document').ready(function(){ $(':empty').css('background', 'coral'); });Test See‹/›