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 |
what are the features of jquery
Explain various methods to make ajax request in jquery? : jquery mobile
Which selector has better performance id or class and why?
Tell me does jquery 2.0 supports ie? : jquery mobile
How to use connect?
Which version of jquery file should be used?
What are selectors in jquery? : jQuery Mobile
What is difference between onload and ready?
How to disable jQuery animation?
Tell me an example usage of jquery mobile? : jquery mobile
What is the difference between javascript and jquery?
What is the use of html() method in jquery?