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 explanation of a method to rename procedure in MYSQL

Recently I have used the function of renaming sto...

js realizes the magnifying glass effect of shopping website products

This article shares the specific code of js to ac...

7 Best VSCode Extensions for Vue Developers

Adding the right VS Code extension to Visual Stud...

Teach you how to build Tencent Cloud Server (graphic tutorial)

This article was originally written by blogger We...

Analysis of the difference between Mysql InnoDB and MyISAM

MySQL supports many types of tables (i.e. storage...

Detailed steps for Python script self-start and scheduled start under Linux

1. Python automatically runs at startup Suppose t...

Detailed explanation of how to restore database data through MySQL binary log

Website administrators often accidentally delete ...

A small question about the execution order of SQL in MySQL

I encountered a sql problem at work today, about ...

Why node.js is not suitable for large projects

Table of contents Preface 1. Application componen...

Solve the problem of running jupyter notebook on the server

Table of contents The server runs jupyter noteboo...

WEB standard web page structure

Whether it is the background image or the text siz...

Example of automatic stop effect after text scrolling

The effect is very simple, just copy the following...

Alibaba Cloud Server Ubuntu Configuration Tutorial

Since Alibaba Cloud's import of custom Ubuntu...