ほんとうに簡単。jQueryでjsが100倍楽しくなる。
divの数をカウント。
<script>
jQuery(function(){
$("#hogehoge").html("divの数 : "+$("div").size());
})
</script>
<blockquote id="hogehoge">
divの数をカウント。
</blockquote>
divの数をカウント。
<script>
jQuery(function(){
$("#hogehoge").html("divの数 : "+$("div").size());
})
</script>
<blockquote id="hogehoge">
divの数をカウント。
</blockquote>
トラックバックURL: http://www.0yen-coding.com/mt-tb.cgi/263
コメントする