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 |
Is it possible to use jquery to make ajax request? : jquery mobile
Tell me how to select combobox select value and text using jquery?
Where jquery mobile works? : jquery mobile
What are the difference between alert() and confirm()?
Can you use multiple document.ready() function on the same page?
How to debug jQuery?
Tell me how do you stop the currently-running animation? : jquery mobile
Explain jquery connect?
How we can check if an element is empty or not using jquery?
What is queue() in jquery? Use of queue() in jquery?
Define each() function in jquery?
Can you give me a brief history of your programming days? Where did it all start?