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

How to use connect in jquery?

0 Answers  


In jquery, what is the meaning of toggle?

0 Answers  


How to call a method inside code-behind using jquery?

0 Answers  


How to get the style property of an element using ?

0 Answers  


Explain .bind() vs .live() vs .delegate() vs .on()

2 Answers  






How do you select element by ID in jQuery?

1 Answers  


Is there any advantage of using $.ajax() for ajax call against $.get() or $.post()?

1 Answers  


Explain cdn in jquery?

0 Answers  


How to find grand children in of an element?

0 Answers  


Tell me is jquery a w3c standard? : jquery mobile

0 Answers  


What is jquery selectors? Give some examples.

0 Answers  


What are the basic selectors in jQuery?

0 Answers  


Categories