This article is a mirror article of machine translation, please click here to jump to the original article.

View: 15270|Reply: 1

[HTML/HTML5] The HTML SELECT control setting disabled cannot pass a value to the background

[Copy link]
Posted on 7/14/2017 2:05:10 PM | | | |

Finally, the background receives the foreground parameters, and the shape value stored in the database is always 0.

The program also did not throw an exception, and then checked the network request and found that when the foreground post was submitted, there was no value of the shape submitted at all

found that it could not be submitted normally, I set the tab to read-only, is it a problem of read-only, I found that disabled was removed,

The front end can pass the shape parameter value to the background, which is indeed a disabled problem




Solution:

In order not to affect the aesthetics, I set the read-only property of select and added a hidden input form field

Then, set the value of the hidden form field with jQuery and submit.




Previous:.net/c# Taobao through train batch setting crowd [source code]
Next:win10 "php-cgi.exe - FastCGI process quits unexpectedly" workaround
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com