Selection list in ruby on rails (Combo Box)


#1

Hi,

I am new to ruby, i have a doubt in selection list, i have create the
selection list as follows and it also working fine, my doubt is how to
get selected item value on every change. Any please guide me on this.
<%=
select(:loc, :names, [ [‘India’, 91],
[‘Bangladesh’, 44],
[‘Malaysia’, 60],
[‘West Indies’, 880],
[‘Dubai’, 971],
[‘Bharain’, 973],
[‘USA’, 001]
]) %>

regards,
Senthil K


#2

Try posting your question on refwell.com I got my answer there quite
quickly
regards
Alex

On Jan 31, 10:02 am, Senthil K. <rails-mailing-