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 |
What is the difference between onclick and onsubmit?
Explain the each() function?
How do I pull a native DOM element from a jQuery object?
explain width() vs css(‘width’) in jquery
Difference between detach and remove? : jQuery Mobile
How to add a class to html element?
What is the difference between bind() and live() function in jquery?
What is the difference between $(this) and 'this' in jquery?
Can you use any other name in place of $ (dollar sign) in jQuery?
How to find all sibling elements in front of the current element using ?
What is .siblings() method in jquery?
What is queue() in jquery?