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 |
Why do we need to go for JQuery?
What is the difference between onload() and document.ready() function used in jquery?
How to disable jquery animation? : jquery mobile
How To Use Ajax In Jquery?
How to run an event handler only once in jQuery?
How to execute jQuery code after the DOM is ready?
What programming language does jquery use?
Back onto jquery ui' can you see jquery ui making more of an impression in the future, lead by the current successes of jquery?
What is the use jQuery.data method?
How to check data type of any variable in jquery? : jquery mobile
How to select combobox select value and text using jquery?
How you get server response from an ajax request using jquery?