Read-only and disabled attributes in forms 1. Read-only: The server does not want users to modify the data, but only requires the data to be displayed in the form. For example, registration or transaction agreements, product prices, etc. 2. Disable: A function can only be used after a certain condition is met. For example, users are allowed to click the "Register" button only after they agree to the registration agreement. The player space can no longer click the "Play" button when it is in playback state.
For example <textarea name=”text” rows=”10” cols=”30” readonly=”readonly”><!—This document attribute is read-only--> (Specific content of the service agreement)…</textarea> <input type=”submit” value=”Register” disabled=”disabled“/><!—This button is disabled--> Extension: <input type=”submit” name=”button” value=”Agree to the terms of service, submit registration button” disabled=”true”/> The above brief discussion on the read-only and disabled attributes in the form is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. |
<<: Conditional comments to determine the browser (IE series)
>>: Let's talk about the LIMIT statement in MySQL in detail
Zabbix automatically discovers rules to monitor s...
Installation Steps 1. Create a virtual machine 2....
This article shows you how to use CSS to create a...
Be sure to remember to back up your data, it is p...
There are too many articles about xhtml+css websi...
Table of contents Written in front Requirements A...
After docker run, the status is always Exited Sol...
Basic concepts: Macvlan working principle: Macvla...
This article describes the example of MySQL sched...
【Problem Analysis】 We can use the chown command. ...
Let's first understand a wave of concepts, wh...
After getting used to VM, switching to BOX is a l...
Table of contents Avoid using the spread operator...
I installed MySQL smoothly in Ubuntu 16.04 before...
Table of contents 1. Why is JavaScript single-thr...