Filling a select drop-down with ajax data using jQuery
Here’s how to do it.
First make the drop-down and as the single option make a “loading” message - just to let the user know something is happening.
-- loading –
For convenience there’s a simple example available here. The example uses a static array as source, and in all practical uses this would probably be replaced by a database query.