JQuery Programmer Question: Download JQuery Programmer PDF

How to select single element using jQuery with the given element id some-id?

Tweet Share WhatsApp

Answer:

$('#some-id') selects the single element in the document that has an ID of some-id.

Download JQuery Programmer PDF Read All 201 JQuery Programmer Questions
Previous QuestionNext Question
What is a jQuery selector?Whether jQuery HTML work for both HTML and XML documents?