How get divs count in jquery?
Posted
by Pandiya Chendur
on Stack Overflow
See other posts from Stack Overflow
or by Pandiya Chendur
Published on 2010-05-05T04:18:32Z
Indexed on
2010/05/05
4:38 UTC
Read the original article
Hit count: 192
I used this jquery each function and iterated my json data with it....
$.each(data.Results, function() {
divs += '<div class="resultsdiv"><br />
<span style="display: inline-block;width:150px;" class="resultName">'
+ this.Mat_Name + '</span><span class="resultfields" style="padding-left:10px;">
Measurement :</span> <span class="resultfieldvalues">'
+ this.Mes_Name + '</span> <a href="/Materials/Delete/' + this.Id + '">
Delete</a> <a href="/Materials/Details/' + this.Id + '">Details</a>
<a href="/Materials/Edit/' + this.Id + '">Edit</a></div>';
});
alert(divs.length);
doesnt seem to get the count.... Any suggestion...
© Stack Overflow or respective owner