generating a event

hi,

       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.