Hello:
I have radio buttons like this:
<% fields_for :goalhist do |g| %>
<%= radio_button_tag ('duedate', 0, checked = false, options = {:onclick => ""}) %> Start now |
<%= radio_button_tag ('duedate', 1, checked = false, options = {:onclick => ""}) %> Already started! |
So, they behave fine; but, what’s interesting is that when I popuulate
the onclick methods, the checking of the radio buttons no longer
responds. If I leave those methods unpopulated, they perform fine.
Here’s my populated code:
<% fields_for :goalhist do |g| %>
<%= radio_button_tag ('duedate', 0, checked = false, options = {:onclick => "new Effect.Fade('duedate'); return false;"}) %> Start now |
<%= radio_button_tag ('duedate', 1, checked = false, options = {:onclick => "new Effect.SlideDown('duedate'); return false;"}) %> Already started! |
Any ideas? Only thing else you might need to know is that the
“fields_for” exists within another “form_for” tag.
Thank you so much in advance!
Mike