After the form input box input is set to the disable attribute and submitted, the value of the input box cannot be obtained. To solve this type of problem, you can refer to the following two methods: Method 1: Use readonly instead of disabled, that is, Modified to The difference between the two: Disabled cannot receive focus and will be skipped when the tab key is used, which may not be successful; Method 2: Use type=hidden to hide the input to get the value, and then use disabled to show the input to the user. <input type="hidden" name="url" value="http://www.neirong.org"/> <input type="text" value="http://www.neirong.org" disabled="disabled"/> Summarize The above is the solution that I introduced to you when the HTML form input cannot obtain the form value after submitting it with disabled. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! |
<<: Summary of JavaScript Timer Types
>>: Details of the underlying data structure of MySQL indexes
Table of contents Vue3 encapsulation message prom...
What is the Vendor Prefix? Vendor prefix—Browser ...
This article mainly introduces the installation/st...
Detailed explanation of MySQL sorting Chinese cha...
1. Background Although I have read many blogs or ...
Install Filebeat has completely replaced Logstash...
IMG tag basic analysis In HTML5, the img tag has ...
Table of contents 1. Determine the entity type be...
This article describes the usage of MySQL stored ...
Detailed explanation of the role of static variab...
Counting the size of each table in each database ...
Table of contents 1. Map accepts any type of key ...
Today, when I was writing a small program, I used...
As of now, the latest version of CentOS is CentOS...
Table of contents Preface Option 1: Option 2: Opt...