Which is fast document.getElementByID('txtName') or $('#txtName').?
Answer / chaitanya
Native JavaScipt is always fast. jQuery method to select txtName "$('#txtName')" will internally makes a call to document.getElementByID('txtName'). As jQuery is written on top of JavaScript and it internally uses JavaScript only So JavaScript is always fast.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of toggle() method in jquery?
Tell me do I need to add the jquery file both at the master page and content page as well?
What is jquery connect and how to use it?
How can you add a jquery library in your project?
Mention some advantages of jquery.
What is the use of delegate() method in jquery?
What is jQuery connect?
Explain the difference between onload() and document.ready() function used in jquery?
Explain the starting point of code execution in jquery? : jquery mobile
Define animate function in jquery?
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?
How to use transition effects? : jQuery Mobile