Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery element selector

jQuery element selector

jQuery selector jQuery 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 jQuery selector