Created
April 26, 2012 06:01
-
-
Save joncode/2496424 to your computer and use it in GitHub Desktop.
radio button won't checked=checked
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
the problem was solved by nesting the | |
<input name="option.<%= feature.name %>" type="radio" checked="checked" value="<%= option_value %>"> | |
in a form. | |
<form> | |
<input name="option.<%= feature.name %>" type="radio" checked="checked" value="<%= option_value %>"> | |
</form> | |
Altho in one controller it works NOT in a form and also the checkboxes were checked=checked without the form. | |
For some reason making it a form allowed for the checked=checked to work. | |
The other features of the radio buttons worked fine, just not checked=checked. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment