16 May 22:05
radio button observe field only triggers once
From: John Butler <rails-mailing-list@...>
Subject: radio button observe field only triggers once
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-05-16 20:07:36 GMT
Subject: radio button observe field only triggers once
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-05-16 20:07:36 GMT
Hi,
If i add field observers to radio button fields they trigger once but
then nothing after that. I have multiple fields in a form that i need
to know if one of them changes and which spedific field. Below is an
example of two foelds i tested and they trigger once with the alert but
then nothing after that. I also tried individual observers for each
field test_yes and test_no but with the same issue.
<%= radio_button_tag 'test', "yes" %>
<%= radio_button_tag 'test', "no" %>
<%= observe_field('test',
:on => 'click',
:function => "alert('Element Yes changed')"%>
Does anyone know why or experienced something like this before?
JB
--
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
(Continue reading)
RSS Feed