jQuery要素セレクター

❮jQueryセレクター

すべての<p>要素を選択します。

$("p")

定義と使用法

要素セレクターは、特定の要素名を持つすべての要素を選択します。


構文

$("element")

Parameter Description
element Required. Specifies the element to select

自分で試してみてください-例


のすべてのp要素を選択する方法。


❮jQueryセレクター