View Full Version : Dynamic Select Statements with js and php

06-07-2011, 10:30 AM
I'm trying to use this: http://www.w3.org/TR/WCAG20-TECHS/working-examples/SCR19/dynselect.html, but i've a problem:
I've to fill the first select options with some text taken from a database by PHP and there is no problem. The problem is about the second select that i've to fill with some record taken from another table linked with the first one by an id, to obtain something like this to put it in the javascript:
countryLists["id"] = ["table_2.element with the same id", "Argentinatable_2.element2 with the same id", "table_2.element3 with the same id", "table_2.element4 with the same id"];
I hope you can understand my bad english...

Thanks a lot for your attenction.