Iw wrote:
I am experiencing problems retrieving information from the related drop downs. I can save information in the database (i.e. state_id and city_id are getting saved in the Address table).
However on the Address's edit/update screen, the information from the first "State" drop down is getting retrieved properly but nothing is getting displayed in the second drop down - "City".
I am using observe fields to retrieve data for the second drop down. Please advise how to prepopulate information for the second drop down based on the "id" stored in the database on Edits screens.
Thanks in advance for your help!
I
Ramanan wrote: > Kevin Olbrich wrote: >>>Ramanan >>> >>> >>>-- >>>Posted via http://www.ruby-forum.com/. >>>_______________________________________________ >>>Rails mailing list >>>Rails@lists.rubyonrails.org >>>http://lists.rubyonrails.org/mailman/listinfo/rails >> >> Take a look at this... >> >> http://www.sciwerks.com/blog/2006/07/07/updating-select-controls-with-ajax/ >> >> _Kevin >> www.sciwerks.com > > > I have a working code where there are only 2 select boxes i.e. > populating city when state is selected. I am having issues with > populating locality based on selected city. Working with 2 dynamic > select is straight forward. Working with more than 2 dynamic/cascading > select box is a real issue. > > Thx. for your help
-- Posted via http://www.ruby-forum.com/.
You'd have to give us a bit more information about how you are populating your select in the first place.
_Kevin