Home >Web Front-end >HTML Tutorial >How to use read-only and disabled in forms

How to use read-only and disabled in forms

php中世界最好的语言
php中世界最好的语言Original
2018-01-23 09:24:132374browse

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 form

1. 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

Extension:

I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to php Chinese website

Other

related articles! Related reading:

About the method of operating scroll bars in HTML


html block-level tags, inline tags, inline blocks What are the display modes of labels


htmlHow to make a thin line table

The 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn