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 |
Explain jquery.noconflict? : jquery mobile
What is the difference between .empty(), .remove() and .detach() methods in jQuery?
Differentiate the concepts of .js and .min.js?
What is jQuery connect?
How can you select all elements in a page using jquery?
What is the use of jQuery filter?
How to always reference latest version of jquery?
How do you get the text value of a selected option?
How do you check if an element is empty?
Can we call C# code behind using jQuery?
What is the struts2 jquery plugin and its advantages.
How to use migrate jquery plugin if possible? : jquery mobile