What is the difference between jquery.size() and jquery.length?
Answer Posted / 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 View All Answers
How to select combobox select value and text using jquery?
What is a cdn? What are the advantages of using cdn?
What are the advantage of using minimized version of jquery?
Why we need jquery mobile? : jquery mobile
What is the difference between prop and attr?
What is the difference between onclick and onsubmit?
Difference between document.ready() and body onload()?
What is the use of jquery.data()?
What are the types of selectors that are used in jquery? Give examples.
What are the features of jquery used in web applications?
differentiate between bind() vs live() vs delegate() methods in jquery.
Can we have multiple document.ready() function on the same page? : jquery mobile
Can you please explain the difference between event.preventdefault and "return false"? : jquery mobile
What are the effects methods used in jquery?
How to add and remove css classes to an element using jquery?