jQuery id Selector
jQuery #id Selector
The #id selector is used to select elements with the specific id. The id refers to the id attribute of an HTML element. The id attribute must be unique in the whole document.
Syntax:-
Its syntax is:- $("#id");
Further Explanation:-
Parameter | Description |
---|---|
id | Required. Specifies the id of the element to select |