Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox Radio Button Weirdness

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.

like image 341
jerrygarciuh Avatar asked Oct 24 '09 22:10

jerrygarciuh


People also ask

How do I change the radio appearance of a Firefox profile?

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.

How do you select a radio button in HTML?

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.

What is a radio button?

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.

What is the background color of a radio button?

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.


1 Answers

Doh! My designer had a single tag wrapping each group of radios. Eliminating the label tag fixes FireFox's weirdness.

like image 116
jerrygarciuh Avatar answered Sep 20 '22 12:09

jerrygarciuh