Easy Tutorial
❮ Misc Parsexml Traversing Contents ❯

jQuery #id Selector

jQuery Selectors

Example

Select the element with the id "intro":


Definition and Usage

The #id selector selects the element with the specified id.

The id refers to the id attribute of the HTML element.

Note: The id attribute must be unique within the document.

Note: Do not start the id attribute with a number! It may cause issues in some browsers.


Syntax

Parameter Description
id Required. Specifies the id of the element to select. <br>

jQuery Selectors

❮ Misc Parsexml Traversing Contents ❯