dhtmlxCombo populating dependant text fields

Hi !

I have a form with dependant/interrelated input fields. In a specific case, there is a dhtmlxCombo box upon which 3 simple elements depend. What I want to do is the following: once a value is set in the dhtmlxCombo box, the 3 simple input texts should be automatically populated. So the question is: how can I get the dhtmlxCombo box to trigger the auto-populating of the 3 input text fields ?

The dhtmlxCombo box is in autocomplete mode from dynamically fetched xml data. I can fetch all needed information (for combo and 3 text fields) all at once if necessary.

Thanks.

Hi,

you may set onChange event handler and set the values of the inputs in it:

combo.attachEvent(“onChange”,function(){
var value = this.getActualValue();
document.getElementById(“input id here”).value = …

});