English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
child Selektor-:only
Syntax:-$(":only
Wählen Sie jeden <p>-Element aus, das als einziges Kind seines Elternelements ist:
$(document).ready(function(){ $("p:only-child").css("background", "coral"); });Testen Sie heraus‹/›