Latest web development tutorials

jQuery element selector

jQuery selector jQuery selector

Examples

Select all <p> elements:

$("p")

try it"

Definition and Usage

element selector selects all elements with the specified element name.


grammar

$("element")

参数 描述
element 必需。规定要选取的元素。


Examples

Try - Example

Select the class of "intro" all the elements p
How to select the class of "intro" all p elements.


jQuery selector jQuery selector