Click to See Complete Forum and Search --> : Ajax Depenant Drop Down List


Typhoon101
01-09-2008, 04:52 AM
Hi. I am trying to build a depenant drop down list. I can do this easily using javascript arrays, but would like to try using Ajax. the values of the second drop down are stored in a mySql database.

I have never used Ajax before, so am a little stuck. I have followed tutorials and have managed to insert a string in a text box etc, but have not found anything on how to populate a select field.

can anyone help?

bluestartech
01-09-2008, 05:06 AM
you should try the Prototype Ajax library, it is quite simple to use. I am fairly sure it is available from javascript.internet.com.

all you need to do is supply the id of the element, e.g. a div, and read the required data from the server