Home > Article > Web Front-end > Form processing_html/css_WEB-ITnose
checkbox
When I submit data, the option in the form is cleared because other data validation fails. How can I do it even if it is submitted? , after the data verification fails, the checkbox option will still be retained and will not be reset Just use ajax for your verification. There is no need to refresh everything. Verify each form field separately. Do not verify after submitting the entire form.
Just use ajax for your verification. There is no need to refresh everything. Verify each form field separately. Do not verify after submitting the entire form.
Other controls in the entire form field include text boxes, radio boxes, multi-select boxes, and file upload controls. They are all ASP controls. The checkbox is an HTML control. When the submission verification fails, except for the file upload control Except for the checkbox value or option being reset, the data of other controls are retained
First of all, if it is format verification or simple data verification, it is better to put it on the client.
Secondly, for your question, you can capture this value in the background when submitting, and then return it