Home  >  Article  >  Web Front-end  >  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中文网
PHP中文网Original
2016-05-16 16:37:361216browse

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

The code is as follows:

style="cursor:not-allowed;" disabled


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

Statement:
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