Click to See Complete Forum and Search --> : mischievious radio buttons


ricardo259
11-19-2003, 08:04 PM
hmm.

i have two sets of two radio buttons in a form, marked "yes" and "no" to indicate the answer to two separate questions.

The two pairs of buttons are in the same row but separate columns.

For some reason they are being read as one set of four buttons, i.e. only one from four can be selected at any time.

Any ideas how I can remedy this?

cheers

pyro
11-19-2003, 10:15 PM
Give them different names. Only one radio button of the same name can be checked.

Sux0rZh@jc0rz
11-20-2003, 08:26 AM
pyro, would it also work if they put a div inside the table col.
<div class=buttonpair1></div>
<div class=buttonpair2></div>
like that?

pyro
11-20-2003, 08:35 AM
No, if the radio buttons have the same name, and are part of the same from, wrapping them in <div>s will not help.

Aronya1
11-20-2003, 02:56 PM
Originally posted by pyro
Give them different names. Only one radio button of the same name can be checked.

Just for the sake of clarity, what Pyro means is give the two sets of radio buttons different names. The buttons in each set should each have the same name as the other button.