Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

count div class in div jquery

<div class="wrapper">
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
</div>
<script>
alert($('.wrapper').children('.item').length)
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #div #class #div #jquery
ADD COMMENT
Topic
Name
1+2 =