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

Detailed steps to install JDK and Tomcat in Linux environment

Table of contents 1. Install JDK Manual Installat...

A simple method to implement scheduled backup of MySQL database in Linux

Here are the detailed steps: 1. Check the disk sp...

Linux bash: ./xxx: Unable to execute binary file error

Today I sent a small tool for Ubuntu to a custome...

Using shadowsocks to build a LAN transparent gateway

Table of contents Install and configure dnsmasq I...

IIS and APACHE implement HTTP redirection to HTTPS

IIS7 Download the HTTP Rewrite module from Micros...

Analysis of MySQL lock wait and deadlock problems

Table of contents Preface: 1. Understand lock wai...

MySQL multi-table query detailed explanation

Time always passes surprisingly fast without us n...

Use of Vue3 pages, menus, and routes

Table of contents 1. Click on the menu to jump 1....

React's method of realizing secondary linkage

This article shares the specific code of React to...

Sample code for generating QR code using js

Some time ago, the project needed to develop the ...

How to monitor Tomcat using LambdaProbe

Introduction: Lambda Probe (formerly known as Tom...

How to effectively compress images using JS

Table of contents Preface Conversion relationship...

How to use Nginx to solve front-end cross-domain problems

Preface When developing static pages, such as Vue...