What does .size() method of jquery return ?

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

.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 :-

$(document).ready(function(){ 

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



Thanks and Regards
Akiii


| Alert Moderator 

Comments or Responses

Login to post response