There are two ways to achieve read-only input: disabled and readonly. Naturally, both results can only be read but not edited, but there are big differences between the two. Disabled means that the input is invalid and its value will not be passed to any program, such as asp, php, etc. Readonly simply cannot be edited and does not affect the transmission of its value. Disabled usage: <INPUT type="text" name="username" value="james" disabled> Readonly usage: <INPUT type="text" name="partNumber" value="1500" readonly> |
<<: A brief discussion on whether too many MySQL data queries will cause OOM
>>: How to distribute two buttons on the left and right sides of the same parent tag using CSS
1. Check the database time zone show variables li...
Table of contents 1. Basic conditions for databas...
Table of contents 1. Operate the database 1.1 Cre...
Preface: As a giant in the IT industry, Microsoft...
Table of contents Components - Timeline Custom no...
I can log in to MYSQL normally under the command ...
We often encounter this situation in front-end de...
1. display:box; Setting this property on an eleme...
1. Enable Prometheus telemetry data By default, t...
Preface: Partitioning is a table design pattern. ...
This article introduces Nginx from compilation an...
Recently I used vue to learn to develop mobile pr...
First, the principle of esp8266 publishes message...
To learn content-type, you must first know what i...
An error message appears when MySQL is started in...