| Sample: dhtmlxCombo | Grouping | dhtmlxCombo main page |

Combo groups

There is an opportunity to organize groups of interdependent combos. When you select option in a parent combo , a value of selected option is sent with a request and the child combos are filled up with the necessary options.

### Combo groups in different containers

Method attachChildCombo allows to set child combo in another container.
It has two parameters:

- object of the child combo
- path to script which generates xml

        var z3=new dhtmlXCombo("combo_zone3","alfa3",200);
        z3.loadXML("3.php")

        var z2=new dhtmlXCombo("combo_zone2","alfa2",200);
        z2.enableFilteringMode(true);
        z2.attachChildCombo(z3,"3.php");
        z2.loadXML("2.php");

        var z=new dhtmlXCombo("combo_zone","alfa",200);
        z.enableFilteringMode(true);
        z.attachChildCombo(z2,"2.php");
        z.loadXML("1.xml")

### Combo groups in the same container

You can define a child combo in the same container with its parent by setAutoSubCombo(url,name) method.

        var z4=new dhtmlXCombo("combo_zone4","alfa4",200);
        z4.enableFilteringMode(true);
        z4.loadXML("1.xml")
        var z5 =  z4.setAutoSubCombo("2.php","alpha5")
        var z6 =  z5.setAutoSubCombo("3.php","alpha6")