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


Please Help Members By Posting Answers For Below Questions

Can you give me a brief history of your programming days? Where did it all start?

591


How to load a page using jquery mobile? : jquery mobile

459


What are the types of selectors that are used in jquery? Give examples.

473


Explain cdn? : jquery mobile

484


Can JQuery Run on MAC or Linux instead of Windows?

479






Tell me is jquery a library for client scripting or server scripting? : jquery mobile

459


Define "beforesend(xhr)" paremeter of jquery ajax method?

432


Explain the features of jquery mobile? : jquery mobile

427


Why is the block display style used for animations?

424


With jquery which operating system is more compatible?

516


How to submit a form without submit button using jquery?

472


What are the advantages of minified version of jquery?

441


What is jQuery CDN?

503


What are the browser related issues for jQuery?

464


How to multiple AJAX requests be run simultaneously in jQuery?

426