How do you select element by ID in jQuery?
Answer / chaitanya
To select element use ID selector. We need to prefix the id with "#" (hash symbol). For example, to select element with ID "txtName", then syntax would be,
Hide Copy Code
$('#txtName')
| Is This Answer Correct ? | 0 Yes | 0 No |
Why content injected into a page is not enhanced? : jquery mobile
What are the the two types of cdns?
How to read, write and delete cookies in jquery?
How to resolve conflicts with other libraries?
How We Can Write Code Specific To Browser In Jquery?
What is the use of noconflict() method in jquery?
What is event.stoppropagation? : jquery mobile
What is queue() in jquery? Use of queue() in jquery?
Whether jQuery HTML work for both HTML and XML documents?
Which are the popular jQuery CDN? and what is the advantage of using CDN?
How do you select all elements with the class of “selected” in jquery?
Explain the difference between .empty() and .remove() ?