# Select changed event for collection\_select

**URL:** <https://www.ruby-forum.com/t/select-changed-event-for-collection-select/106797>\
**Category:** Rails\
**Created:** [June 14, 2007, 7:59am UTC](https://www.ruby-forum.com/t/select-changed-event-for-collection-select/106797 "2007-06-14T07:59:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bins](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/858c86/32.png) [@bins](https://www.ruby-forum.com/u/bins)\
**Post date:** [June 14, 2007, 7:59am UTC](https://www.ruby-forum.com/t/select-changed-event-for-collection-select/106797/1 "2007-06-14T07:59:34Z")

</div>

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.
