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 are the slow selectors in jquery? : jquery mobile
Difference between javascript and jquery? : jQuery Mobile
Explain the advantages of jquery?
What is event.stoppropagation? : jquery mobile
Which one is more efficient, document.getElementbyId( "myId") or $("#myId)?
What are the popular jquery cdn? : jquery mobile
Difference Between Prop and Attr in jQuery?
Explain finish method in jquery? : jquery mobile
How can events be prevented from stopping to work after an ajax request?
How can you apply a style on an element using jQuery?
What were the biggest challenges of getting the jQuery 1.7 release ?
Explain the difference between parent() and parents() methods in jquery? : jquery mobile
How you get server response from an ajax request using jquery?
Define type paremeter of jquery ajax method?
differentiate between bind() vs live() vs delegate() methods in jquery.