Saturday, 24 August 2013

Previous Interview Question Next Interview Question
Home

What is the difference between jquery.size() and jquery.length?

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. 

Previous Interview Question Next Interview Question
Home

0 comments :

Post a Comment