How to work with AJAX in ruby on rails while on change event of a combobox?

To describe in detail when there is a change in the combo box then the details from the corresponding value should be displayed in the textboxes.
for eg: Editing a student detail.

Thanks & Regards,
Yamini Sundarraj.