Hello,
I’m having trouble with observe_field and radio buttons. The issue is
the observe_field action only fires the first time, subsequent clicks on
radio buttons do nothing.
I’ve seen others post on this issue, but have not found any solutions.
CODE:
from view…
<%= radio_button_tag(‘types’, ‘p5p’, (params[:dbinfo] ||= true))
%>P5P
<%= radio_button_tag(‘types’, ‘p5i’, false) %>P5I
<%= observe_field(:types_p5p,
:udpate => ‘categories’,
:url => {:action => ‘update_module_categories’},
:with => “‘types=’ + encodeURIComponent(value)”,
:on => ‘click’ ) %>
<%= observe_field(:types_p5i,
:udpate => ‘categories’,
:url => {:action => ‘update_module_categories’},
:with => “‘types=’ + encodeURIComponent(value)”,
:on => ‘click’ ) %>
###############
This works the first time I click one of the radios, but never again.
Any ideas?
regards,
Andy K.