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 parent() and parents() methods in jQuery?

Answer Posted / chaitanya

The basic difference is the parent() function travels only one level in the DOM tree, where parents() function search through the whole DOM tree.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

855


How to resolve conflicts with other libraries?

861


How to find grand children in of an element?

807


What is the difference between $.map and $.grep in jQuery?

856


Have any of your startup projects failed dismally - if so, why and how did you learn from them?

826


How do you update ajax response with id " resilts"?

884


What are the various ajax functions available in jquery ?

734


List browser related issues for jquery?

772


What is the difference between the id selector and class selector in jquery?

817


How to get/set the html contents of an element using jQuery?

842


Why are not some scripts and styles loading? : jquery mobile

783


How to validate email using jquery?

896


Which version of jquery file should be used?

906


What is the use of jQuery load method?

858


How can you add a jquery library in your project?

761