This time I will show you how to use read-only and disabled in the form. What are the precautions for using the read-only and disabled attributes in the form? The following is the actual combat Let’s take a look at the case.
Read-only and disabled attributes in the form1. Read-only: The server does not want the user to modify the data, but only requires the data to be displayed in the form. For example, registration or transaction agreement, commodity price, etc. 2. Disable: A certain function can only be used when a certain condition is met. For example, the user is only allowed to click the "Register"button after agreeing to the registration agreement. The player space is in the playing state and cannot click the "Play" button, etc. For example
(Specific content of the service agreement)…..
Extension:
I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to php Chinese website
Otherrelated articles! Related reading:
About the method of operating scroll bars in HTMLhtml block-level tags, inline tags, inline blocks What are the display modes of labelshtmlHow to make a thin line tableThe above is the detailed content of How to use read-only and disabled in forms. For more information, please follow other related articles on the PHP Chinese website!