I have a form with a lot of groups of radios. Each radio has a unique id and has the same name as the others in its group. The page validates as XHTML transitional.
Tested in IE6 & 7, Opera, Safari, and Chrome it works exactly as you would think it would from either mouse or keyboard input.
In FireFox it goes crazy. A single click on any radio in a group sets the first radio in the group checked. A double click on a radio usually selects it. Anyone seen this before?
Sample group looks like this:
<input type="radio" name="upAndDown_1" id="upAndDown_11" value="Y" /> Y <br />
<input type="radio" name="upAndDown_1" id="upAndDown_12" value="N" checked="checked" /> N<br />
<input type="radio" name="upAndDown_1" id="upAndDown_13" value="NA" /> NA
The phonmomenon can be tested here: http://www.nolaflash.com/stackoverflow/firefox_and_radios.html
Any advice appreciated.
You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page. Does it work if you edit the style property and change it to: -moz-appearance: radio; Try this code in userContent.css.
A radio button can be selected by clicking on the area of its indicator as well as its label. Usually the clicktarget extends to the same width for each element in a collection of radio buttons. This results in a click target that extends beyond the label, for all elements shorter than the longest.
Radio buttons allow a selection of one option from a group of mutually exclusive options. Use radio buttons to provide people with a choice from a set of two to five mutually exclusive options. For example to offer a choice of how to save downloads.
Background Color: Grey 90 a10 rgba (12, 12, 13, 0.1) Border: 1px Grey 90 a30 rgba (12, 12, 13, 0.3) A radio button can be selected by clicking on the area of its indicator as well as its label. Usually the clicktarget extends to the same width for each element in a collection of radio buttons.
Doh! My designer had a single tag wrapping each group of radios. Eliminating the label tag fixes FireFox's weirdness.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With