Calling a remote method on choosing an item from Select

Hi,

Is there a way where in I can trigger remote action when an user choose one of the options in the dropdown of "select" method?

Mebbe something like on_change but instead of triggering JS action, remote action is what i am looking at.

Please suggest

Regards, Sandeep

Hi,

Is there a way where in I can trigger remote action when an user
choose one of the options in the dropdown of "select" method?

Mebbe something like on_change but instead of triggering JS action, remote action is what i am looking at.

Please suggest

onchange is what you want. the javascript in there should make an ajax
request.

Fred

Thanks Fred. I used something like this: {:onchange => 'window.location=this.value;'} the value of the select option can be made text link. So it worked like a charm for me to load a new page on selecting an option.