top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Difference between size() and length in jquery?

0 votes
121 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
...