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 |
Which is the starting point of code execution in jQuery?
What is jQuery CDN?
what does $("div") will select? : jquery mobile
How can you add a jquery library in your project?
What were the biggest challenges of getting the 1.7 release out there?
How to revert the most recent ‘destructive’ operation, changing the set of matched elements to its previous state using ?
How we can remove an attribute of an html tag in jquery?
What is the between $(this) and 'this' in jquery?
What is event.stoppropagation? : jquery mobile
What is jQuery code to select all links in first paragraph?
How do you select an item using css class or id and get the value by use of jquery.
How do you stop the currently-running animation? : jquery mobile