Forum: Ruby on Rails Select changed event for collection_select

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3ed68b7e96aedd03c27a3558659faa96?d=identicon&s=25 Bins Bins (bins)
on 2007-06-14 07:59

I'm using collection_select method in one application as follows.

<%= collection_select("occupation","id",@occupations,"id","name")%>

Could you please tell how we can call a javascript function on a select

Thanks in advance,
This topic is locked and can not be replied to.