I have a code where I submit by calling a function with the the following code
<input type=submit value=SUBMIT onclick=report_submit()>
I want the button to be disabled initially and only enabled if all my inputs are not null.
Once the form is submitted, I want the button to be disabled again so that duplicate insertions don't take place.
I have tried other examples from Stack Overflow, but either it is perpetually enabled or disabled.