Generating a event


   im using select_tag in my view.i want to generate a alert box

when i select any option in that drop down box,anyone know please help
me to reach it.

<%= select_tag “something”, …options etc…, :onchange =>
“alert(‘test’)” %>

Thanks Thorsten its working.Thanks for ur timely help.

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