Check documentation for the latest version 6.0 of dhtmlxSuite setReadonly DHTMLX Docs

setReadonly

makes an item readonly

void setReadonly(string name,boolean state);

Parameters

namestringthe name of an item
statebooleantrue/false, by default - false

Example

//makes an item with name="myInput" readonly
myForm.setReadonly("myInput", true);
 
//makes the item not readonly
myForm.setReadonly("myInput", false);

Back to top