Methods of disabled EasyUI common control

input和textarea:

?

1

2

3

$('#controlid').prop('disabled', true);

$('input:not(:button,:hidden)').prop('disabled', true);//禁用除button和hidden控件外的所有input控件

$('textarea').prop('disabled', true);

radio and checkbox: 

?

1

2

$('input:radio[name="radioname"]').prop('disabled', true);

$('input:checkbox[name="checkboxname"]').prop('disabled', true);

combobox、combotree、datebox和datetimebox: 

?

1

2

3

4

$('#comboboxid').combobox({ disabled: true });

$('#combotreeid').combotree({ disabled: true });

$('#dateboxid').datebox({ disabled: true });

$('#datetimeboxid').datetimebox({ disabled: true });

ps: Note that easyui of datebox and datetimebox first disabled by assignment, if the first assignment will lead to further disable the control is disabled after the value is empty.

combogrid:

?

1

2

$('#combogridid').combogrid('disable');//easyui的combogrid控件设置禁用要用这种方法,如果用设置combobox的方法会导致一直重复调用onLoadSuccess事件

$('#FPayApplySupAccountID').combogrid('enable');//启用

On the above method to disable this EasyUI common controls is small series to share the entire contents of everyone, and I hope to give you a reference

Transfer: https://www.jb51.net/article/96868.htm

Guess you like

Origin blog.csdn.net/cillent_boy/article/details/90543413