Home  >  Article  >  Web Front-end  >  How to submit the value of disabled form field in the form_html/css_WEB-ITnose

How to submit the value of disabled form field in the form_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:23:161289browse

How to submit the value of a disabled form field in a form


Reply to discussion (solution)

Use Replace the disabled one and it will be better

The correct answer is that you can use hidden fields for submission. If you want to display it, you can still use your original method, but remember not to repeat the form name

You can submit using ajax.

Add a submit (onsubmit) processing function to the form, take out the disabled element value, and assign it to an

Use input hidden to solve

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