Latest web development tutorials

jQuery * selector

jQuery selector jQuery selector

Examples

Select all the elements within the document:

$("*")

try it"

Definition and Usage

* Picker to select all elements in the document, including html, head and body.

* If the selectors used in conjunction with other elements, the selectors select specific elements in all sub-elements.

Tip: * selectors have some browsers processing burden.


grammar

$("*")


Examples

Try - Example

Select all the elements of the <body> of
* Use the selector to select the <body> element within all elements.


jQuery selector jQuery selector