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

Tell me how to disable jquery animation? : jquery mobile

691


Why is not dom ready working for jquery mobile? : jquery mobile

715


What is the difference between $(this) and 'this' in jquery?

6366


Explain the concepts of "$ function" in jquery with an example?

799


Where jquery mobile works? : jquery mobile

735


Hide and show image on button click using jQuery?

730


Which command will give a version of jQuery?

830


Explain the difference between javascript and jquery? : jquery mobile

717


What are all the ways to include jQuery in a page?

752


Explain the common methods of sending a request to a server.

755


How to programmatically trigger a click event thats being handled by jquery only?

756


How we can set the html contents of an element in jquery?

777


Explain .delegate()? : jquery mobile

753


What are the effects methods used in jquery?

776


What is difference between $(this) and ‘this’ in jquery?

725