form form can not be submitted input disabled

Solution: Set input substituting Readonly attribute value;

Analysis:

1 Readonly and disabled difference,

Readonly: for input (text / password) and textarea effective in set to true, the user can get the focus, but can not be edited when the form is submitted, the entry will be as a form of content submission.

disabled: for all form elements (select, button, input, textarea, etc.), in the case where is set to disabled to true, the focus can not be obtained form entries, all user operations meaningless, when the form is submitted, the entry form is not It will be submitted.

Summary:

1, if the user does not allow users to modify in a form, but deliver value when the form is submitted, the form should be set for the property is readonly.

2, disabled and readonly text input box can only be modified by a script property value.

Guess you like

Origin www.cnblogs.com/michaelcnblogs/p/12612550.html