Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 142888

Field is not calculating dynamically when number is changed

$
0
0

Replies: 0

Hello,

I have a field that doesn’t want to update the calculation when a value is changed.
The form is at :
http://www.robstreeremoval.com/quick-calculator/

Select Option: Tree removal with or without its stump ground
and hit next.

If you enter the trunk diameter, it calculates the circumference for you. However, if you change the diameter, the circumference calculation doesn’t update.

My current formula for the Trunk circumference is:

(function(){
var v7 = jQuery(‘[id*=”fieldname’+’7_”]’).val()*1;
if(fieldname1 > 0 && v7 == 0) return prec(fieldname1*3.14,2);
else return prec(v7,2);
})()

Thank you in advance,


Viewing all articles
Browse latest Browse all 142888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>