Method 1: <input id= "File1" type= "text" disabled/> Unavailable Method 2: <input id= "File1" type= "text" readonly/> Read-only Method 3: <input id= "File1" type= "text" style="display:none"/> Hidden (but takes up space) Method 4: <input id="File1" type="text" style="visibility:hidden"/> hidden (does not take up space) Sometimes, we want the text boxes in the form to be read-only so that users cannot modify the information in them, such as making the content of <input type="text" name="input1" value="中国">, the word "中国" cannot be modified. To summarize, there are several ways to implement it. Method 1: onfocus=this.blur() Copy code The code is as follows:<input type="text" name="input1" value="中国" onfocus=this.blur()> Method 2: readonly Copy code The code is as follows:<input type="text" name="input1" value="中国" readonly> <input type="text" name="input1" value="中国" readonly="true"> Method 3: disabled Copy code The code is as follows:<input type="text" name="input1" value="中国" disabled> |
<<: MySQL Query Cache Graphical Explanation
>>: Analysis of the problem of deploying vue project and configuring proxy in Nginx
Note: Since .NET FrameWork cannot be run in core ...
Error description: 1. After installing Nginx (1.1...
Add rules to the el-form form: Define rules in da...
Table of contents Preface The difference between ...
Syntax format: row_number() over(partition by gro...
Before introducing the new CSS property contain, ...
Before installing Tomcat, install the JDK environ...
Since I used this plugin when writing a demo and ...
Table of contents 1. Demand 2. Implementation 3. ...
1. Download Go to the Apache official website htt...
//MySQL statement SELECT * FROM `MyTable` WHERE `...
There are many commands used in the system, so ho...
Conventional solution Use FileReader to read the ...
Table of contents Deploy tomcat 1. Download and d...
It is difficult to find good image material websi...