Anupama Balakrishnan
Monday, 11 September 2017
99.jQuery: Count number of list elements?
<ul id="mylist">
<li>Element 1</li>
<li>Element 2</li>
</ul>
var totallicount=jQuery("#mylist li").length;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment