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 jquery.size() and jquery.length?

Answer Posted / chaitanya

jQuery .size() method returns number of element in the object. But it is not preferred to use the size() method as jQuery provide .length property and which does the same thing. But the .length property is preferred because it does not have the overhead of a function call.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between onload() and document.ready()?

850


How to add or remove classes to an element in jquery?

748


How to select class in jquery?

819


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

826


How we can check if an element is empty or not using jquery?

757


What is the use of jQuery filter?

782


Can there be more than one ready function in jquery?

768


Mac, windows or linux? Why do you love this platform while using jquery?

781


What is called chaining?

836


What is the minimum setup needed to start using jquery.

856


What is the difference between onclick and onsubmit?

856


How do I check if an element is hidden in jQuery?

827


Is jquery a framework?

792


Explain the types of selectors in jquery?

811


How can you add a jquery library in your project?

761