Home > Article > Web Front-end > disabledThe uninputable value cannot be passed to the action layer_HTML/Xhtml_Web page production
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