Forum: Ruby on Rails RE: Ajaxing two drop down lists

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
jviney (Guest)
on 2005-12-01 09:45
(Received via mailing list)
The simplest thing is to inspect the autocomplete widgets available at and adapt them for what you need.

I guess you'd have the second dropdown disabled until a company was
selected. So attach an onComplete handler to your first dropdown which
enables and configures the second dropdown to get employees for only the
selected company (or something like that, there are many variations).

I've adapted my own version of the Ajax.Autocompleter
recently, and it is a very good starting point for constructing your

This topic is locked and can not be replied to.