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 use of param() method in jquery .
What is jquery.length? : jquery mobile
What is jquery and what are the advantages?
Define the types of selectors in jquery?
How can you add a jquery library in your project?
What is the difference between prop() and attr() in jquery?
What is the difference between parent() and parents() methods in jQuery?
What is the difference between $('div') and $('<div/>') in jQuery?
How to select element having a particular class (".selected")?
Define cache paremeter of jquery ajax method?
What is the difference between eq() and get() methods in jQuery?
How to disable jquery animation? : jquery mobile