What is the difference between jquery.size() and jquery.length ?

 Posted by Akiii on 5/8/2012 | Category: jQuery Interview questions | Views: 9774 | Points: 40
Answer:

jquery.size() and jquery.length both returns the number of element found in the object. But, jquery.length is faster than jquery.size() because size() is a method but length is a property .

So, there is always an overhead in calling a function.


Thanks and Regards
Akiii


| Alert Moderator 

Comments or Responses

Login to post response