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.