[eluser]davidbehler[/eluser]
Try something along this lines:
Code:
<5cr1pt >
function update_disc_price()
{
var new_value = $('price').getValue() - $('discount').getValue();
$('disc_price').setValue(new_value);
}
</5cr1pt >
<input name="price" id="price" value="">
<input name="discount" id="discount" value="">
<input name="disc_price" id="price" value="" />
Be aware, that this example uses the prototype framework and this can be done with "normal" js aswell, but I'm just to lazy to look the functions
My example propably won't work, but you should be able to work with this...I guess.