bins
1
Hello,
I’m using collection_select in one of the Rails application as follows.
<%= collection_select(“occupation”,“id”,@occupations,“id”,“name”)%>
Could you please tell how I can call a javascript function on selecting
an item.
thanks in advance
bins.
bins
2
Hi bins,
Could you point me to a solution for this problem ?
I’ve stuck on it for about 2 days now. Cannot find any useful
suggestions on the web.
cheers,
Kupsztal
On Jun 14 2007, 5:48 am, bins [email protected]
bins
3
use the onchange event of the enclosing select tag
if you use rails select in the html-options add something like:
:onchange => ‘change_procedure(this.value)’