Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by bonono on Dec 07, 2009 04:41
open dhtmlx forum
Disable select

I want to disable one of my three select in the lightbox. What's method can use?
Answer posted by Alex (support) on Dec 07, 2009 05:53

You can try to use the following approach:

scheduler.form_blocks.select.set_value=function(node,value,ev){

     var selects = document.getElementsByTagName("select");

    selects[0].disabled = true; /* 0 is index of the select that should be disabled*/

     node.firstChild.value = value; 

}