Hello,

I have the following code in my script:

Code:
<td id="enddate">End date 3</td>

<input type="radio" name="price" value="30" onclick="document.getElementById('enddate').innerHTML = 'End date 3'" /> $30
<input type="radio" name="price" value="20" onclick="document.getElementById('enddate').innerHTML = 'End date 2'" /> $20
<input type="radio" name="price" value="10" onclick="document.getElementById('enddate').innerHTML = 'End date 1'" /> $10
It works fine. Every time someone selects a price, the value in the table gets updated. But what I want to do is also update the value of a hidden form field when someone selects a price.

Code:
<input type="hidden" name="end" value="End date 3 - $30">
Any one know how I can change the variable in the table and the variable in the hidden field at the same time?