Topic: select list - how to send a AJAX request


I am creating a report that shows the months of the year in a drop-down list in the header and some data in the details related to the month selected.

I want the detail data to change when the month is changed in the drop-down list using AJAX request.

Searching this forum I found two forms

1. onChange => remote_function
2. onChange = "new AjaxRequest(...."

Tried both the forms and they both didn't work for me.

Also does this work only in "select_tag" function or can I use it in the plain <%= select("date", "month", {"Jan" => "1".....}  %> select list ?

Couldn't find the documentation of the remote_function or the onChange anywhere.

Any help would be appreciated.