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 some features of jquery knockout?
differentiate between bind() vs live() vs delegate() methods in jquery.
Whether we need to add jQuery file in both Master and Content page?
How to get the style property of an element using ?
How is the deferred method in jquery important in relation to animate method?
What are the methods used to provide effects?
Difference between event.PreventDefault and event.stopPropagation?
What are the methods used to provide effects in jquery?
What is jquery a client or server scripting?
Define jquery connect?
Can we call C# code behind using jQuery?
How to add and remove css classes to an element using ?