observe_field

I have a select element where the id field of a db table is populated. When I select an id from that select tag I want to show all the related names with that id populated in another select tag element in the same page.please help me.

Thanks & Regards INDRANIL MUKHERJEE

You need to make a ajax request to the server with the selected id from your html page.

you need to define a callback in the Ajax request for success and then populate the required fields.

In the server retrieve the related results and render the format.js in the controller.

I think if you to Agile Web Development book and see how ajax is handled… You should be able to do this.

Regards,

Naren