DHTMXCOMBO - How to create dynamic options

Hi all.

I am having 2combos one state,one Cities When I change the state I am making a call to server (AJAX) to get the cities but How to create the options in the Cities drop down. If you can share a sample code that could be very helpful



Regards

Raj

There are two possible solutions

a) create two combos and attach event code as
combo.attachEvent(“onChange”,function(){
combo2.loadXML(“some.php?country=”+combo.getActualValue());
});

b) You can use combo - grouping functionality
dhtmlx.com/docs/products/dhtmlxC … 3463963000