Hi
I have a set of 3 dhtmlxcombo controls in an accordion.
Accordion - Section 1
Combo1 - parent
…Combo2 - child
…Combo3 - child
Accordion - Section 2
…
Accordion - Section 3
…
Combo1 & Combo2 are having onChange Events.
How Can I reuse the same combo controls in the following sections of Accordion
rather than creating new one’s.
Any ideas please?
You can wrap all combos in the DIV tag, and attach your code on accordion activation event, from which, detach such DIV from document and attach it to the active panel of accordion.
In common case - creating separate controls for each panel may be a better solution. ( not to say - a much simpler solution ) You can reuse combo initialization logic for all panels, but have different combo objects.
A DOMlist copy function would be nice though 