I need a method to be called upon an ''onblur'' event when a
select list
is no longer the focus - ideally, I would like it to work when the
''Enter'' key is hit. But, I am just trying to get the onblur to
work,
here is what I got:
<%= select( "airlinemembership", "membership",
Airline.find( :all,
:order =>
''name'' ).collect { |a|
[a.name.downcase.capitalize, a.id]},
{:update => ''exclude_1''}, {:onblur =>
''set_exclude_airline_1''} ) %>
Any ideas on how I can get the method ''set_exclude_airline_1''
to fire?
Thanks,
-S
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---