♦ Id Selector in jQuery
♣ Example3: Id Selector in jQueryThe Id Selector selects by looking up element of required Id.
Note that an Id is unique to element in a page.
Also, note that as a consequence of which if the page has multiple elements with the same Id then the first element having that particular Id will be selected.
Below is the representation of Id Selector Syntax.
demo : id assosciated with tag element for selectionIn this example, .