Forum Moderators: open

Message Too Old, No Replies

Radio Button Exclusive?

HTML FORM

         

RichDiaz

10:05 pm on Nov 28, 2001 (gmt 0)



How do I make these radio buttons exclusive (i.e. selecting one button de-selects the other buttons)

thanks!
Rich

<DIV class=OrderPayment>
<b>PAYMENT METHOD:</b>
<table align="left" cellspacing="1" cellpadding="1" border="1">
<tr>
<td>
<INPUT TYPE = Radio
NAME = formPayAccount>
On Account

<INPUT TYPE = Radio
NAME = formPayCreditCard>
Credit Card

<INPUT TYPE = Radio
NAME = formPayCOD>
Cash on Delivery

<INPUT TYPE = Radio
NAME = formPayWirePayment>
Wire Payment</td>
</tr>

</table>
</DIV>

NFFC

10:13 pm on Nov 28, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Give them all the same name, you will need to specify a value.

oilman

10:16 pm on Nov 28, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This should do the trick:

<INPUT TYPE = "Radio"
NAME = "formPay" value="Account">
On Account

<INPUT TYPE = "Radio"
NAME = "formPay" value="CreditCard">
Credit Card

<INPUT TYPE = "Radio"
NAME = "formPay" value="COD">
Cash on Delivery

<INPUT TYPE = "Radio"
NAME = "formPay" value="WirePayment">
Wire Payment</td>

RichDiaz

10:19 pm on Nov 28, 2001 (gmt 0)



thanks a lot guys.