Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between eq() and get() methods in jQuery?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does dollar sign ($) means in jquery? : jquery mobile

787


What is .siblings() method in jquery?

840


Differentiate between calling stop (true, true) and finish method?

848


What are the browser related issues for jQuery?

781


Can you give me a brief history of your programming days? Where did it all start?

928


How can related code be encapsulated? Give example.

787


Explain the types of selectors in jquery?

810


What are selectors in jquery? : jQuery Mobile

892


How to get the current offset of the first matched element, in pixels, relative to the document using ?

853


In what scenarios jQuery can be used?

898


What is the difference between find and children methods?

870


What are the slow selectors in jquery? : jquery mobile

804


What is parseint() and why it is used?

870


Tell me what is the use of .size() method in jquery?

811


What is method chaining in jquery?

782