dhtmlx combo destructor

Hello,

I am using dhtmlxCombo with jquery
I have list of products in a left pane and when each product is clicked detail form is opened in the right pane which has dhtmlxCombo. What I am noticing is everytime detail form is loaded, dhtmlxcombo keeps adding dom elements.

How do I destroy any existing combo and create the combo when detail for each product is loaded.

Please help

Thanks,
Kris

of I forgot to mention that I am using dhtmlxComboFromSelect method

Hello
To destroy the combo you can use its destructor:
docs.dhtmlx.com/doku.php?id=dhtm … structor&s[]=destructor

One more variant (it no destructs combo, just clears it) is method clearAll:
docs.dhtmlx.com/doku.php?id=dhtm … o_clearall