Which is fast document.getElementByID('txtName') or $('#txtName').?
Answer Posted / 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 |
Post New Answer View All Answers
Tell me how to select combobox select value and text using jquery?
What is jQuery CDN?
How to get the value of selected option in jquery?
What are the browser related issues for jQuery?
How to get/set the html contents of an element using jQuery?
what are the features of jquery
What is the starting point of code execution in jquery?
Explain the difference between event.preventdefault and "return false"? : jquery mobile
differentiate between bind() vs live() vs delegate() methods in jquery.
What is resize() function in jquery?
What features of jquery, has been used in web applications?
Can you please explain the difference between body onload() and document.ready() function? : jquery mobile
Explain the difference between .empty() and .remove() ?
How can we include jQuery library in ASP.Net project?
What are the different type of selectors in jquery?