Sometimes we hope that the controls on the form are not modified. For example, in a web page that changes password, the text box that displays the user name should be unmodified. Let me share with you two ways to disable the controls in the table. During the production process of the web page, we often use the form. But sometimes we hope that the controls on the form are not modified. For example, in a web page where the password is modified, the text box that displays the user name should be in a non-modified state.
There are two ways to disable in html, they are:
1. Add readonly='readonly' attribute to the control label
2. Add disabled='disabled' attribute to the control label
Example:
Copy the code