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 |
What is the between $(this) and 'this' in jquery?
How do you implement animation functionality?
Difference between prop() and attr()? : jQuery Mobile
Is it possible to use our own specific character in the place of $ sign in jquery? : jquery mobile
What are the features of jQuery, has been used in web applications?
Tell me is jquery a w3c standard? : jquery mobile
How to select all elements using jQuery?
What is the use of param() method?
What is the difference between jquery-x.x.x.js and jquery.x.x.x min.js?
What are the advantages of using cdn?
Tell me does jquery 2.0 supports ie? : jquery mobile
Differences Between jQuery .bind() and .live()?