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 |
Tell me what are the slow selectors in jquery? : jquery mobile
How you get server response from an ajax request using jquery?
What are the difference between alert() and confirm()?
Is jquery still relevant 2019?
How can jquery library be added to pages?
What is .siblings() method in jquery?
Define the use of each function in jquery?
How you will use jquery means requirement needed for using jquery.
What are the the two types of cdns?
What is the advantage of using protocol less URL while referencing jQuery from CDNs?
Explain the difference between javascript and jquery? : jquery mobile
Difference between javascript and jquery?