English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Il selettore :empty seleziona gli elementi vuoti. Gli elementi vuoti sono quelli che non contengono elementi figli o testo.
$(':empty')
Selezionare tutti gli elementi vuoti:
$(document).ready(function(){ $(':empty').css('background', 'coral'); });Prova a vedere‹/›