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

Display flex arrangement in CSS (layout tool)

Regarding display: flex layout, some people have ...

Sample code for implementing interface signature with Vue+Springboot

1. Implementation ideas The purpose of interface ...

CentOs7 64-bit MySQL 5.6.40 source code installation process

1. Install the dependency packages first to avoid...

Detailed explanation of the use of MySQL group links

Grouping and linking in MYSQL are the two most co...

Detailed explanation of the two modes of Router routing in Vue: hash and history

hash mode (default) Working principle: Monitor th...

js implements form validation function

This article example shares the specific code of ...

The table tbody in HTML can slide up and down and left and right

When the table header is fixed, it needs to be di...

Let's talk in detail about how the NodeJS process exits

Table of contents Preface Active withdrawal Excep...

Summary of basic usage of js array

Preface Arrays are a special kind of object. Ther...

Use of Linux ifconfig command

1. Command Introduction The ifconfig (configure a...

How to deploy DoNetCore to Alibaba Cloud with Nginx

Basic environment configuration Please purchase t...

Practical example of nested routes in vue.js Router

Table of contents Preface Setting up with Vue CLI...

25 fresh useful icon sets for download abroad

1. E-Commerce Icons 2. Icon Sweets 2 3. Mobile Ph...

Detailed explanation of custom swiper component in JavaScript

Table of contents Effect display Component Settin...