Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jun 03, 2008 02:48
open dhtmlx forum
Disabled css

IS it possible to apply the grey css toa disabled combo box & back to usual on enabling it?
Answer posted by Support on Jun 03, 2008 05:25
In current version, combo in disabled state has not any special css class which can be adjusted
The only way - code modificaiton
You can add any custom logic to the dhtmlxcombo.js , line 138
dhtmlXCombo.prototype.disable = function(mode){
      var z=convertStringToBoolean(mode);
      if (this._disabled==z) return;
      this.DOMelem_input.disabled=z;  
        this.DOMelem_input.style.cssText=" any custom styling here"; // this line can be added