0

my price calculator doesnt works after a ajax call. I hope someone can help me.

ajax call

<script type="text/javascript">
    $(document).ready(function(){
        $('#bundesland_products').change(function(){
            var url = '/inc/products_new.php?id=' + $(this).val();
            $('#products').load(url);
        });
    });
</script>

Price calculator

<script>
$(document).ready(function() {
    $('.option').on('click', function() {
        var total = 0;
        $('.option:checked').each(function() {
            total += parseInt($(this).attr('price'));
        });
        $('#total').html(+total+',00 EUR');
    });
});</script>

HTML

<div>Gesamtpreis: <strong><span id="total">0,00 EUR</span></strong></div>
Gimo
  • 78
  • 1
  • 9

0 Answers0