Calculators on the same page interfering the results
-
Hi, I’m using two similar calculators on the same page separated by css tabs. However, the calculators are interfering the results of each other. I’m using HTML content to show the calculated field result and this is the script for the first calculator:
<span class="metric"></span> <script> jQuery(document).on('change', '[class*="fieldname8_"] input', function(){ var metric = jQuery('[class*="fieldname8_"] label').text(); if(this.value>0){ var metric += ' '+'<b>'+this.value+'</b>'; jQuery('.metric').html(metric);} }); </script>
The “metric” is replaced with “us” for the second calculator.
Please advise what should I do to make the two calculators’ field names independent of each other?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Calculators on the same page interfering the results’ is closed to new replies.