Forum Moderators: open
<form method='post' name='transform'><table>
Amount: <input type='text' name='v_amount_total' onChange='totcalc()' />
Quantity:<input type='text' name='v_quantity' onChange='totcalc()' />
Sales Tax: <input type='text' name='v_tax' onChange='totcalc()' /></td>
Total:$<input type='text' name='v_calc_total' disabled='disabled' value='#.##' />
<script type="text/javascript"><!--
function totcalc()
{
document.transform.v_calc_total.value =
((document.transform.v_amount_total.value -0) *
(document.transform.v_quantity.value -0))
+ (document.transform.v_tax.value - 0);
}
//--></script>
answer.toFixed(2)should suffice.