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
What is the difference between onload() and document.ready()?
How to add or remove classes to an element in jquery?
How to select class in jquery?
Have any of your startup projects failed dismally - if so, why and how did you learn from them?
How we can check if an element is empty or not using jquery?
What is the use of jQuery filter?
Can there be more than one ready function in jquery?
Mac, windows or linux? Why do you love this platform while using jquery?
What is called chaining?
What is the minimum setup needed to start using jquery.
What is the difference between onclick and onsubmit?
How do I check if an element is hidden in jQuery?
Is jquery a framework?
Explain the types of selectors in jquery?
How can you add a jquery library in your project?