jQuery :parent セレクタ

❮ jQuery Selectors

子要素(テキストを含む)を持つ全ての <td> 要素を選択する:

$("td:parent")
Try it Yourself »

定義と用法

:parent セレクタは、テキスト・ノードを含む他要素の親である全ての要素を選択します。


構文

$(":parent")

❮ jQuery Selectors