Perhaps observe_field method helps you: http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M001654
2010/1/24 M I R <[email protected]> > Hi, > I am creating a dropdown list with the follwoing code which work > perfectly > > <%= f.collection_select (:building_id, > @buildings, :id , :build_title , :prompt => "select") %> > > but i want to use ONCHANGE attribute to it how will i do this ,,,, > please help i am new to RoR > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- Bruno Grasselli Blog: http://brunograsselli.com.br Twitter: http://twitter.com/grasselli -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

