How can I use with dynamic content dhtmlXComboFromSelect (Aj

Need to function more or less like this:











How do I do that? is it possible?


the provided code looks correct. What issue have you faced ?

The ajax to change the content of "" the dhtmlxcombobox no longer recognizes him

How do dhtmlxcombobox with dynamic content?

You need to call next block of lines

var cities = dhtmlXComboFromSelect(“cities”);

from ajaxGet callback, so each time, when second area reloaded - second combo will be initialized from new data.

Actually you can replace ajaxGet with native method of combo

function onChangeFuncNewCities() {
cities.loadXML(“cities.php?for=”+state.getComboValue()) ; //load xml data with new list of values for combo