Disabling the form input is not necessary. Think about when you work in a text editor and save during editing. You can continue while the 'form' (your text) is being processed.
- How do I disable a field in a form?
- How to disable submit button after form submission in javascript?
How do I disable a field in a form?
To disable form fields, use the CSS pointer-events property set to “none”.
How to disable submit button after form submission in javascript?
1.1 To disable a submit button, you just need to add a disabled attribute to the submit button. $("#btnSubmit"). attr("disabled", true); 1.2 To enable a disabled button, set the disabled attribute to false, or remove the disabled attribute.