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 |
Can you use any other name in place of $ (dollar sign) in jQuery?
Mention some advantages of jquery.
How to use connect in jquery?
What is the advantage of using minimized version of jQuery?
What is jquery a client or server scripting?
Explain some of the key concepts of good code organization patterns.
Explain the types of selectors in jquery?
What is the difference between find and children methods in jquery?
What are the advantages of method chaining in jquery?
How to use jquery.connect?
How is the deferred method in jquery important in relation to animate method?
What the use of $ symbol in jquery.