Categories | Question details Back To List | ||
how to enable/disable combo Hi Team, Used dhtmlXComboFromSelect and enableFilteringMode(true). But, whenever form elements get disabled/enabled, how do I disable and enable dhtmlxcombo automatically. Regards, Ramu. Answer posted on Apr 14, 2008 08:04 Combo API allows to make it enable/disable by using the following approach: combo.disable(1); //disable combo.disable(0); //enable So you can get "disable" state of the html select before dhtmlXComboFromSelect call. And then set the same state to the combo. Answer posted by Ram on Apr 14, 2008 08:47 How do I find the created dhtmlxcombo by id. Based on value selection of one dhtmlxcombo, I need to enable/ disable Tried using document.getElementById(<dhtmlcombo id>), still no luck. Answer posted by Support on Apr 15, 2008 03:05 The dhtmlXComboFromSelect returns the combo object, which can be used. combo1 = dhtmlXComboFromSelect(...) combo2 = dhtmlXComboFromSelect(...) .... combo1.attachEvent("onChange",changeState); function changeState(){ combo2.disable(1); ... } |