Categories | Question details Back To List | ||
dhtmlcombo group 3 combo's Hi, I have a requirement of having 3 combo boxes. I want to use the group I have combo1 = Parent ---combo2 = child -------combo3 = child Basically when the user select the combo1 the selected value will be passed to server to render the combo2. When the user select combo2 the value of combo 1 and combo 2 need to be passed to the server to render the combo3. Please advice. Thanks Joe Answer posted by Alex (support) on Nov 23, 2009 01:58 Hello, in this case instead of using group extension you can apply onChange event for combo1 and combo2: combo1 = new dhtmlXCombo(...); combo3 = new dhtmlXCombo(...); ... combo1.attachEvent("onChange",function(){ combo2.clearAll() var value1 = combo1.getActualValue(); combo2.loadXML(url2+"?value1="+value1); }) combo2.attachEvent("onChange",function(){ combo3.clearAll() var value1 = combo1.getActualValue(); var value2 = combo2.getActualValue(); combo2.loadXML(url3+"?value1="+value1+"&value2="+value2); }) |