6
<div id="btns">
   <input id="r01" type="radio" name="music" checked>
   <input id="r02" type="radio" name="music">
   <input id="r03" type="radio" name="music">
   <input id="r04" type="radio" name="music">
   <input id="r05" type="radio" name="music">
</div>

Firefox 24 - r1 is not checked on page refresh. On Shift-F5 - works.
Chrome - works.

Tepken Vannkorn
  • 9,648
  • 14
  • 61
  • 86
qadenza
  • 9,025
  • 18
  • 73
  • 126

2 Answers2

9

If it works on shift-F5 it just means, firefox saves the user-input because the form was not sent yet. Firefox keeps form data on reload

Just found a solution!

Just add autocomplete="off" to all you input and you will solve the problem.

jQuery to solve this on all inputs and textareas

$('input,textarea').attr('autocomplete', 'off');
Community
  • 1
  • 1
Thomas Oster
  • 421
  • 2
  • 10
0

It's a Firefox issue for a long time now.

Set the checked property with javascript when the page loads:

window.onload=check;
function check() {
  document.getElementById("r01").checked = true;
}
imre
  • 109
  • 1
  • 2
  • 7