Solution to the problem that input in form cannot be submitted when disabled

Solution to the problem that input in form cannot be submitted when disabled
I wrote a test program before, in which adding and modifying are written together. When I need to use modification, an input box is used in the form, and the disabled attribute is not set. Later, when I need to connect with the front-end written by others, because the id cannot be modified, the other party sets a

Copy code
The code is as follows:

Task ID: <input type="text" name="taskId" disabled="disabled">

Seeing that all the SQL statements sent were insert, I struggled for a while and found that there was something wrong with the disabled attribute. I asked Teacher Gu and found an article in Baidu Space titled "How to submit the value of a disabled form field in a form". I realized that this would cause the submission to fail. The solution is the following reply from @trocebao.

The rookie has learned some new tricks. Well, I'll record them for future reference.

<<:  Detailed steps for Linux firewall configuration (based on yum warehouse configuration)

>>:  17 JavaScript One-Liners

Recommend

Vue3 Documentation Quick Start

Table of contents 1. Setup 1. The first parameter...

How to support full Unicode in MySQL/MariaDB

Table of contents Introduction to utf8mb4 UTF8 by...

js memory leak scenarios, how to monitor and analyze them in detail

Table of contents Preface What situations can cau...

Tutorial on installing MySQL 5.6 on CentOS 6.5

1. Download the RPM package corresponding to Linu...

Introduction to the usage of common XHTML tags

There are many tags in XHTML, but only a few are ...

How to start multiple MySQL instances in CentOS 7.0 (mysql-5.7.21)

Configuration Instructions Linux system: CentOS-7...

Detailed explanation of Vue filters

<body> <div id="root"> <...

The difference between char, varchar and text field types in MySQL

In MySQL, fields of char, varchar, and text types...

Detailed explanation of Javascript basics

Table of contents variable Data Types Extension P...

Detailed explanation of vue keepAlive cache clearing problem case

Keepalive is often used for caching in Vue projec...

How to implement responsive layout in vue-cli

When we are doing front-end development, we will ...

HTML+VUE paging to achieve cool IoT large screen function

Effect demo.html <html> <head> <me...