jQuery element selector
Example
Select all
element:
$("p")
Try it »
Definition and Usage
The element selector selects all elements with the specified element name.
Syntax
$("
element
")
| Parameters | Description |
|---|---|
| element | Required. Specifies the element to select. |
Try it - Example
Select all p elements with class "intro"
How to select all p elements with class "intro".
jQuery selector