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

WBOY
Release: 2016-06-24 12:23:16
Original
1292 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template