手机估值计算的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>

  

你可能感兴趣的:(jquery)