Input and textarea:

$('#controlid').prop('disabled'.true);
$('input:not(:button,:hidden)').prop('disabled'.true);// Disable all input controls except button and hidden controls
$('textarea').prop('disabled'.true);
Copy the code

Radio and the checkbox:

$('input:radio[name="radioname"]').prop('disabled'.true);
$('input:checkbox[name="checkboxname"]').prop('disabled'.true);
Copy the code

Combobox, Combotree, DateBox and DateTimeBox:

$('#comboboxid').combobox({ disabled: true });
$('#combotreeid').combotree({ disabled: true });
$('#dateboxid').datebox({ disabled: true });
$('#datetimeboxid').datetimebox({ disabled: true });
Copy the code

Ps: Note that easyui’s datebox and dateTimebox must be disabled before assignment. If assignment is disabled before assignment, the value of the disabled control will be null.

Combogrid:

$('#combogridid').combogrid('disable');// Easyui comboGrid controls are set to disable this method. Setting comboBox will result in onLoadSuccess being repeatedly called
$('#FPayApplySupAccountID').combogrid('enable');/ / enabled
Copy the code

And you can see it here