Select changed event for collection_select

Hello,

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
change?

Thanks in advance,
Bins.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs