Easyui How to disable common controls

Source: Internet
Author: User

Input and TEXTAREA:

$ (' #controlid '). Prop (' disabled ', true); $ (' Input:not (: Button,:hidden) '). Prop (' disabled ', true);// Disables all input controls except the button and the hidden Control $ (' textarea '). Prop (' disabled ', true);

Radio and checkbox:

$ (' input:radio[name= ' Radioname "]). Prop (' disabled ', true); $ (' Input:checkbox[name= ' checkboxname"] '). Prop (' Disabled ', true);

ComboBox, Combotree, Datebox, and Datetimebox:

$ (' #comboboxid '). ComboBox ({disabled:true}); $ (' #combotreeid '). Combotree ({disabled:true}); $ (' #dateboxid '). Datebox ({disabled:true}); $ (' #datetimeboxid '). Datetimebox ({disabled:true});
PS: To note that the Easyui Datebox and Datetimebox to first disable the re-assignment, if the first assignment and then disable will cause the value of the control is empty.


Combogrid:

$ (' #combogridid '). Combogrid (' disable ');//easyui Combogrid control settings disabled to use this method, if you use the Set ComboBox method, the Onloadsuccess event is always called repeatedly $ (' #FPayApplySupAccountID '). Combogrid (' Enable ');//Enable


And you can see here.

Easyui How to disable common controls

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.