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 |
How can related code be encapsulated?
Can you include multiple version of jQuery? If yes, then how they are executed?
How do you attach a event to element which should be executed only once?
How to check data type of any variable in jQuery?
In what situation you would use multiple version of jQuery and how would you include them?
Explain width() vs css(‘width’)?
How jQuery selectors are executed?
What is .detach()? : jquery mobile
How we can hide a block of html code on a button click using jquery?
Is it possible to hold or delay document.ready execution for sometime?
Do you have plans for a new jquery plug-in or something else we should look out for? Where to from here for the imgpreview plugin?
Is jquery a library for client scripting or server scripting? : jquery mobile