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

Can we select a element having a specific class in jquery ?

0 Answers  


What is the use of serialize method in jQuery?

0 Answers  


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

0 Answers  


Do we need to add the jquery file both at the master page and content page as well?

0 Answers  


Explain the difference between jquery-x.x.x.js and jquery.x.x.x min.js?

0 Answers  






What are the features of jquery used in web applications?

0 Answers  


How to find grand children in of an element?

0 Answers  


Explain the use of the $.fn.bind and $.fn.trigger.

0 Answers  


What is the use of val() method in jquery?

0 Answers  


What is the use of toggle() method in jquery?

0 Answers  


With jquery which operating system is more compatible?

0 Answers  


Do you have plans for a new jquery plug-in or something else we should look out for? Where to from here for the imgpreview plugin?

0 Answers  


Categories