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 chaining in jquery? : jquery mobile
Which command will give a version of jQuery?
Can you please explain the difference between .js and .min.js? : jquery mobile
Explain event.preventdefault? : jquery mobile
What are selectors in jquery?
Define animate function in jquery?
Tell me how to select combobox select value and text using jquery?
How to add and remove css classes to an element using ?
Whether our own specific characters are used in place of $ in jQuery?
What is parent() in jquery?
What is the difference between $(this) and 'this' in jquery?
Explain the animate function.