Disabled values ​​that cannot be entered cannot be passed to the action layer

Disabled values ​​that cannot be entered cannot be passed to the action layer
If I want to make the form non-input-capable, I set the form to:

Copy code
The code is as follows:

style="cursor:not-allowed;" disabled

But after setting it up like this, I found that there was no way to get the value in the background action. Finally, I searched on the Internet and found that replacing disabled with readonly can indeed pass the value to the background, but the form can get the focus again. Getting the focus makes people uncomfortable to watch. But the project is tight, so let’s leave it like this for now.

After the form is set to disabled, the value cannot be passed to the background

<<:  UrlRewriter caching issues and a series of related explorations

>>:  CSS to achieve dynamic secondary menu

Recommend

Several common methods for setting anchor positioning in HTML

There are several ways I know of to set anchor pos...

Detailed explanation of mysql exists and not exists examples

Detailed explanation of mysql exists and not exis...

Teach you how to use Portainer to manage multiple Docker container environments

Table of contents Portainer manages multiple Dock...

How to store false or true in MySQL

MySQL Boolean value, stores false or true In shor...

Introduction to Sublime Text 2, a web front-end tool

Sublime Text 2 is a lightweight, simple, efficien...

MySQL 8.0.22 decompression version installation tutorial (for beginners only)

Table of contents 1. Resource download 2. Unzip t...

JavaScript ES new feature block scope

Table of contents 1. What is block scope? 2. Why ...

What are the drawbacks of deploying the database in a Docker container?

Preface Docker has been very popular in the past ...

Linux uses stty to display and modify terminal line settings

Sttty is a common command for changing and printi...

How to configure Linux CentOS to run scripts regularly

Many times we want the server to run a script reg...

Teach you how to implement the observer mode in Javascript

Table of contents What is the Observer Pattern? S...