Answer Posted / 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 |
Post New Answer View All Answers
What is jquery datepicker in jquery?
How to select all elements using jQuery?
Can you please explain the difference between prop and attr? : jquery mobile
Explain .empty() vs .remove() vs .detach() in jquery
What are jquery selectors?
What is a filter in jquery? Explain
What is serialize() in jquery?
What is the basic requirement to start with the jquery?
What is the difference between $.map and $.grep in jQuery?
Explain the use of each function in jquery?
What is difference between .setinterval() and .delay() ?
Why content injected into a page is not enhanced? : jquery mobile
What does jQuery data() function do?
Explain the script build up by jquery?
In what scenarios jQuery can be used?