Home > Web Front-end > HTML Tutorial > disabledThe uninputable value cannot be passed to the action layer_HTML/Xhtml_Web page production

disabledThe uninputable value cannot be passed to the action layer_HTML/Xhtml_Web page production

PHP中文网
Release: 2016-05-16 16:37:36
Original
1250 people have browsed it

If I want to make the form uninputable, I set the form to:

The code is as follows:

style="cursor:not-allowed;" disabled
Copy after login


But after setting it like this I found that there was no way to get the value from the action in the background. Finally, I searched on the Internet and found that replacing disabled with readonly can indeed transfer the value to the background after the replacement is completed, but the form can gain focus. Gaining focus is uncomfortable to watch. But the project is tight, so let’s leave it at that.

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template