Jquery Sum Calculator not working on mobile devices

0

I have a simple jquery calculator that’s working fine on desktop but not on mobile’s.

Do you know why ?
I can’t figured out how to analyse the console on mobile.

Here is the code for the calculator

$('.form-group').on('input','.prc',function(){
    var totalSum = 0;
    $('.form-group .prc').each(function(){
      if($(this).is(':checked')){
        var inputVal = $(this).val();
        if($.isNumeric(inputVal)){
            totalSum += parseFloat(inputVal);
        }
      }
    });
    $('#result').val(totalSum + '€');
});

You can find the whole code here : http://artisans-web-occitanie.fr/

Link: Jquery Sum Calculator not working on mobile devices
Source: Stack Jquery

Share.

About Author

Leave A Reply