I have 2 radio buttons that are just interface elements:
radio_button_tag. I don’t really care about their method or object, I
just want to fire some login on the page based on whether or not they’re
clicked. Problem is, they’re not behaving together, meaning I can have
them both be checked at the same time, which is a no-no. Is this a
limitation of radio_button_tag becuase it’s not hooked up to a form.
Here’s my radio button code in my view:
I have 2 radio buttons that are just interface elements:
radio_button_tag. I don’t really care about their method or object, I
just want to fire some login on the page based on whether or not they’re
clicked. Problem is, they’re not behaving together, meaning I can have
them both be checked at the same time, which is a no-no. Is this a
limitation of radio_button_tag becuase it’s not hooked up to a form.
Here’s my radio button code in my view:
What am I doing wrong? I just want them to perform as normal radio
buttons and then use their “onclick” option to fire off some javascript.
Thanks very much in advance for your help!
Mike
The name of both radio buttons is ‘’, an empty string. The browser will
only allow one selection based on the radio buttons name. I think the
browser is getting confused by the lack of a name.
So give that first parameter a real value, and it should work fine.
I have 2 radio buttons that are just interface elements:
radio_button_tag. I don’t really care about their method or object, I
just want to fire some login on the page based on whether or not they’re
clicked. Problem is, they’re not behaving together, meaning I can have
them both be checked at the same time, which is a no-no. Is this a
limitation of radio_button_tag becuase it’s not hooked up to a form.
Here’s my radio button code in my view:
What am I doing wrong? I just want them to perform as normal radio
buttons and then use their “onclick” option to fire off some javascript.
Thanks very much in advance for your help!
Mike
The name of both radio buttons is ‘’, an empty string. The browser will
only allow one selection based on the radio buttons name. I think the
browser is getting confused by the lack of a name.
So give that first parameter a real value, and it should work fine.
And it still didn’t work. but that’s because there aren’t any values
for these two things, no methods, because they’re really not supposed to
be hooked up to anything.
And it still didn’t work. but that’s because there aren’t any values
for these two things, no methods, because they’re really not supposed to
be hooked up to anything.
And it still didn’t work. but that’s because there aren’t any values
for these two things, no methods, because they’re really not supposed to
be hooked up to anything.