Hi everyone,
I'm having an issue with a project I'm working on, that I believe requires Javascipt, but my knowledge of the language is fairly minimal at the moment.
Basically, I need to do some calculations using a form on the site. I have 3 fields where the user will punch in numbers and there will be a "calculate" button to then show a pop-up window with the total.
The equation goes something like this...
(((A * 52) * B) + C) - 1249
The html at the moment looks like this...
<form action="" method="post" id="form1">
<label>FieldA</label>
<input type="text" name="a" />
<label>FieldB</label>
<input type="text" name="b" />
<label>FieldC</label>
<input type="text" name="c" />
<input type="button" name="Button" value="CALCULATE" />
<input type="text" name="total" />
</form>
Does anyone have any idea how I go about this? Any help would be greatly appreciated!! If you need any other info, pst me.
Thanks,
Ben
I'm having an issue with a project I'm working on, that I believe requires Javascipt, but my knowledge of the language is fairly minimal at the moment.
Basically, I need to do some calculations using a form on the site. I have 3 fields where the user will punch in numbers and there will be a "calculate" button to then show a pop-up window with the total.
The equation goes something like this...
(((A * 52) * B) + C) - 1249
The html at the moment looks like this...
<form action="" method="post" id="form1">
<label>FieldA</label>
<input type="text" name="a" />
<label>FieldB</label>
<input type="text" name="b" />
<label>FieldC</label>
<input type="text" name="c" />
<input type="button" name="Button" value="CALCULATE" />
<input type="text" name="total" />
</form>
Does anyone have any idea how I go about this? Any help would be greatly appreciated!! If you need any other info, pst me.
Thanks,
Ben