top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Difference between size() and length in jquery?

0 votes
115 views
Difference between size() and length in jquery?
posted Jul 26, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The .size() method is functionally equivalent to the .length property; however, the .length property is preferred because it does not have the overhead of a function call.
They will both give you the same result but .length is slightly faster.

answer Jul 29, 2014 by Amit Kumar Pandey
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...