Forum Moderators: coopster

Message Too Old, No Replies

AJAX Select List

Populate a select list based on a previous selection with AJAX, PHP & MySql

         

lbombardier

6:56 pm on Mar 31, 2007 (gmt 0)

10+ Year Member



I've been looking for an Ajax example wherein a dropdown list is populated based on a previous selection.

I.e. Select List 1 - "Choose Country" - based on this selection Select List 2 would populate with Cities in that country.

Found a way to do it using multiple txt files which hold the Select List 2 options, but I would prefer to use PHP MySql to populate both lists.

Any thoughts?

cameraman

10:59 pm on Mar 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you looked at this thread?
[webmasterworld.com ]

supermanjnk

3:47 pm on Apr 2, 2007 (gmt 0)

10+ Year Member



Dhtmlgoodies has a nice one too
[dhtmlgoodies.com...]