Affect disabled property on the form submission form

In the single form, if input join disabled = "disabled" or disabled = "true" and other attributes, form when the form is submitted, it will not pass value to the background.

The reason: In an HTML page elements joined disable attribute, then the element we simply go to the user to display, when the form is submitted, the element will not submit to the background to deal with. So when the disabled attribute elements are added, the background can not get the value of this property.

Solution: write a hidden attribute, for a display for a traditional values. Or try  Readonly = " Readonly" property.

Guess you like

Origin www.cnblogs.com/wushangzhizun/p/11528523.html