Why isn’t My Radio Button Selecting in FireFox?
Here’s a kind of annoying one. If you’re doing development on forms, odds are at some point in time you’re going to want to pre-select a radio button. Doing that is simple:
<input type=”radio” name=”myButton” value=”myValue” selected=”selected”>
So, you add that to a form element, and, like any good developer, you’re using FireFox to test as it’s more accurate rendering engine means you can develop compliant pages. Of course, your radio button remains unchecked. You can refresh as much as you want while tinkering with your code, but it probably won’t ever change. Why? FireFox caches radio button selections basically forever. The only way to get a true look at radio button values is to perform a hard refresh (CTRL+SHIFT+F5 on the PC). Now your box is selected, as it should be.
That’s the Golden Rule for FireFox Form Development: always make sure your cache is clear with CTRL+SHIFT+Refresh.
Blogged with Flock
July 21st, 2007 at 2:26 pm
CTRL+SHIFT+F5 doesn’t seem to work for me in Firefox. It dosen’t do any sort of refresh when I press it.
July 26th, 2007 at 2:18 pm
Hold CTRL+SHIFT and click the Refresh button. That should work.
August 13th, 2007 at 8:50 am
Evidently the FireFox team has declared this a
“feature”, rather than a bug. Bah!
https://bugzilla.mozilla.org/show_bug.cgi?id=360986