I have the following 4 radio buttons & a hidden field in an HTML Form:
<form name="form1">
<input type=hidden name="txtPrimary">
<input type=radio name="pcontact value="6">
<input type=radio name="pcontact value="136">
<input type=radio name="pcontact value="623">
<input type=radio name="pcontact value="222">
.........
Please note that the values of the radio buttons are being assigned dynamically (for which I am using ASP) i.e. I am not aware of the values of the radio buttons at design time. Now what I want is when a user clicks one radio button, the hidden field value should be equal to the value of the checked radio button. If the user changes his selection i.e. selects another radio button then the hidden field value should be equal to the value of the newly checked radio button. How do I do this?
Thanks,
Arpan
<form name="form1">
<input type=hidden name="txtPrimary">
<input type=radio name="pcontact value="6">
<input type=radio name="pcontact value="136">
<input type=radio name="pcontact value="623">
<input type=radio name="pcontact value="222">
.........
Please note that the values of the radio buttons are being assigned dynamically (for which I am using ASP) i.e. I am not aware of the values of the radio buttons at design time. Now what I want is when a user clicks one radio button, the hidden field value should be equal to the value of the checked radio button. If the user changes his selection i.e. selects another radio button then the hidden field value should be equal to the value of the newly checked radio button. How do I do this?
Thanks,
Arpan