I’ve been struggling trying to get jQuery to make a calculation for me, and i’m kinda pulling my hair out a bit now!
I need to make a calculation to work out the theoretical weight of a given amount of steel sheets based upon the quantity and the dimensions. The output will be a weight in kg.
The equation is as follows:
Qty x 7.85 x Length(mm) x Width(mm) x Gauge(mm) / 1000
The details need to be pulled from form fields and then the result outputted to text or in an input, preferably as the person edits the quantity field.
You can see an example of what i am trying to achieve here: http://www.clifton.rogr.net/enquiry
use
parseInt()