Is it possible to submit a form and the fields of that form after they are submitted to stay with values that they had, not to be empty ?
答案 0 :(得分:2)
Using AJAX you can submit the form without leaving the page(and without erasing values), take a look at this answer Submit form using AJAX and jQuery
答案 1 :(得分:0)
I suggest you to use JS validation or HTML5 form validation if you don't want to use JavaScript.
I prefer the second way which is clearer, but not sure to work in every browser.