Latest web development tutorials

jQueryの:親セレクタ

jQueryのセレクタ jQueryのセレクタ

すべての<TD>要素を選択して子供を持っており、テキストを含みます:

$("td:parent")

»をお試しください

定義と使用法

:親セレクタは、他の要素とテキストノードを含む親要素のすべての要素を選択します。


文法

$(":parent")


jQueryのセレクタ jQueryのセレクタ