reference/retrieving selected value in two radio groups

E

eddie wang

How can I reference/retrieving selected value in two radio groups? The
folloing statements are based on two groups of radio buttons. When user
picks each radio button, the same asp script will execute and the
parameters(query string) for the asp will be based on the selected value
of the two sets of radio groups. Thanks.


<input type="radio" name="radio1" value="Both"
onclick="javascript:document.field_list.document.location='List.asp?&typ
e1=radio2.selectedvalue&type2=radio2.selectedvalue'" checked>Both&nbsp
<input type="radio" name="radio1" value="Onshore"
onclick="javascript:document.field_list.document.location='List.asp?&typ
e1=radio2.selectedvalue&type2=radio2.selectedvalue'">Onshore&nbsp
<input type="radio" name="radio1" value="Offshore"
onclick="javascript:document.field_list.document.location='List.asp?&typ
e1=radio2.selectedvalue&type2=radio2.selectedvalue'">Offshore&nbsp
<br>
<input type="radio" name="radio2" value="Both2"
onclick="javascript:document.field_list.document.location='List.asp?&typ
e1=radio2.selectedvalue&type2=radio2.selectedvalue'" checked>Both&nbsp
<input type="radio" name="radio2" value="coop"
onclick="javascript:document.field_list.document.location='List.asp?&typ
e1=radio2.selectedvalue&type2=radio2.selectedvalue'">Company Operated
<input type="radio" name="radio2" value="obo"
onclick="javascript:document.field_list.document.location='List.asp?&typ
e1=radio2.selectedvalue&type2=radio2.selectedvalue'">Outside Operated
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top