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

Tell me how to disable jquery animation? : jquery mobile

0 Answers  


What is the difference between jquery.get() and jquery.ajax()?

0 Answers  


Define the types of selectors in jquery?

0 Answers  


What are the selectors in jquery? How many types of selectors in jquery?

0 Answers  


What is jQuery code to select all links in first paragraph?

0 Answers  


What is $() in jquery?

0 Answers  


How to create, read and delete cookies with jquery?

0 Answers  


How do you stop the currently-running animation? : jquery mobile

0 Answers  


What is the starting point of code execution in jquery?

0 Answers  


What are the slow selectors in jQuery?

1 Answers  


Define width() vs css('width')?

0 Answers  


Explain the difference between jquery.size() and jquery.length?

0 Answers  


Categories