Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by krzak on Dec 10, 2007 12:32
open dhtmlx forum
Disable dhtmlXCombo with other form elements

Is it possible to integrate dhtmlXCombo with form and with prototype-like way of disable/enable ? prototype use element.disable(), element.enable(), and dhtmlXcombo use object.disable(mode); I just wonder is it possible with some simple trick to disable whole form (with dhtmlXCombo) using one method call;
Answer posted by Support on Dec 11, 2007 02:18
There is no such built-in functionality , but it can be added pretty easily
dhtmlxcombo.js, line 1085

var z=document.createElement('input');
   z.className = 'dhx_combo_input';
//next need to be added to enable requested behavior
    var self=this;
    z.enable=function(){ self.disable(false); }
    z.disable=function(){ self.disable(true); }