What does .size() method of jquery return ?

 Posted by Akiii on 5/8/2012 | Category: jQuery Interview questions | Views: 2440 | Points: 40

.size() method of jquery returns number of element in the object. That means that you can count the number of elements within an object.

For example :-


var Count = $("div").size();

Thanks and Regards

| Alert Moderator 

Comments or Responses

Login to post response