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 |
How to use it jquery knockout?
What is difference between .setinterval() and .delay() ?
What is serialize() in jquery?
Explain url paremeter of jquery ajax method?
Whether we need to add jQuery file in both Master and Content page?
What is the name of jquery method used for an asynchronous http request?
How to check/uncheck an input in jquery?
How to use jquery.connect?
How to concatenate two strings using jquery?
How to disable jQuery animation?
Explain the difference between javascript and jquery? : jquery mobile
Can you please explain the difference between javascript and jquery? : jquery mobile