I need to do some calculations in a form when a form loads so I would think onload is the best way to make this happen?
I have tried the following.
<BODY onLoad="document.forms[0].Price.value=( ((500) / (100)) * 17 + 500 );">
<input type="radio" value="" checked name="Price">
But it gives an error.
The idea is that when the page loads the radio buton has a value of 500 increased by 17%
However I would like to have 5 radio buttons that are increased by 17% 34% 51% 68% 85%
Any Ideas welcomed..
Thanks in advance
Rob
I have tried the following.
<BODY onLoad="document.forms[0].Price.value=( ((500) / (100)) * 17 + 500 );">
<input type="radio" value="" checked name="Price">
But it gives an error.
The idea is that when the page loads the radio buton has a value of 500 increased by 17%
However I would like to have 5 radio buttons that are increased by 17% 34% 51% 68% 85%
Any Ideas welcomed..
Thanks in advance
Rob