My submit button will disappear after being clicked (to prevent users from clicking many times): this.style.display=’none’;
I know that it’s not really the best practice but it’s what i have now.
However, i run into another problem. Sometimes, users miss a couple fields in the form. Then they hit “Submit,” and i have a window popup telling them that they need to complete the form before submitting it. By then, the “submit” button has already disappeared. So i use location.reload (true) to have the “submit”button again. However, all data that’s been filled by users are lost.
Is there a way to refresh the page without losing already filled out data.
Thanks.