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



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

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

More jQuery Interview Questions

What does dollar sign mean in jquery? : jQuery Mobile

0 Answers  


What is the use of .size() method in jquery?

0 Answers  


How to find all sibling elements in front of the current element using ?

0 Answers  


Why jQuery is better than JavaScript?

0 Answers  


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

0 Answers  






How to load jQuery locally when CDN fails?

1 Answers  


What is jQuery.noConflict?

1 Answers  


What are the popular jquery cdn? : jquery mobile

0 Answers  


Explain the features of jquery?

0 Answers  


Explain which program is useful for testing jquery?

0 Answers  


What is $() in jquery library?

0 Answers  


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

0 Answers  


Categories