What is the difference between eq() and get() methods in jQuery?
Answer / chaitanya
eq() returns the element as a jQuery object. This method constructs a new jQuery object from one element within that set and returns it. That means that you can use jQuery functions on it.
get() return a DOM element. The method retrieve the DOM elements matched by the jQuery object. But as it is a DOM element and it is not a jQuery-wrapped object. So jQuery functions can't be used. Find out more here.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain animate function in jquery?
What is the difference between event.stopPropagation and event.stopImmediatePropagation?
Explain source maps in jquery? : jquery mobile
How to run an event handler only once in jQuery?
What is event.PreventDefault in jQuery?
How to keep the submit text from showing with jquery mobile? : jquery mobile
How does jquery store data related to an element?
Tell me is jquery a library for client scripting or server scripting? : jquery mobile
What is the difference between find and children methods in jquery?
Why is only the first page of multi page document loaded? : jquery mobile
What is the latest version of jquery?
What is chaining in jQuery?