element count 값 구하기

Posted by Albert 3561Day 16Hour 43Min 23Sec ago [2015-07-20]

//html 단
<div id="selected">
    <ul>
        <li>29</li>
        <li>16</li>
        <li>5</li>
        <li>8</li>
        <li>10</li>
        <li>7</li>
    </ul>
</div>

// 스크립트단
<script>
var count = $("'selected li").length;
alert(count);
</script>



LIST

Copyright © 2014 visionboy.me All Right Reserved.