手机估值计算的jquery代码

<script type="text/javascript">
        $('#inquiry').click(function(){
                var total=0;
                var count = {$count};
                var url = "__APP__?g=home&m=Index&a=calculate";
                $('.checked input').each(function(){
                        total += parseInt($(this).val());
                });
                //alert(total);
                if($('.checked input').length == count){
                        location.href = url;
                }
        });
</script>

  

posted @ 2015-01-19 18:33  捕蛇者说  阅读(124)  评论(0编辑  收藏  举报