Forum: Ruby on Rails options vs. html options in collection_select

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Daniel H. (Guest)
on 2006-06-10 02:33
(Received via mailing list)
I wanting to add an onchange event handler to collection_select but I'm
not
sure how.

The api gives the signature as

collection_select(object, method, collection, value_method, text_method,
options = {}, html_options = {})

I'm not sure, however, if I need to place the desired code in "options"
or
"html_options".  I'm sure I could just figure it out through trial and
error, but is there some resource which explains the difference between
options and html_options, and gives examples of each?

Thanks
Daniel
This topic is locked and can not be replied to.