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
Preface: Recently I am going to team up with my p...
Table of contents 1. Count data is lost Solution ...
There are many Hadoop installation tutorials on L...
By default, MySQL in Linux distinguishes between ...
inherit 1. What is inheritance Inheritance: First...
Back in the Kernel 2.6 era, a new security system...
Software Download Download software link: https:/...
When loading network data, in order to improve th...
This is an effect created purely using CSS. To pu...
This article introduces the command statements fo...
Table of contents Why do we need Docker? Docker d...
Target Display one of the data in the iostat comm...
Table of contents Method 1 1. Configuration and i...
Table of contents TypeScript environment construc...
Without further ado, I will post the code for you...