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

jQuery * selector

jQuery * selector

jQuery selector jQuery selector

Example

Select all elements within the document:

$("*")

Try it »


Definition and Usage

If the * selector is used together with other elements, it selects all child elements within the specified element.

Tip:The * selector can be a processing burden on some browsers.


Syntax

$("*")


Try it - Example

Select all elements within
Use the * selector to select all elements within the element.


jQuery selector jQuery selector