Select changed event for collection_select


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