How to prevent form submiting before DOM is ready?
- by Mask
I'm using javascript to validate the form,
but can't handle the case when the form is submitted before DOM is ready
I tried :
<form method="POST" disabled="disabled">
<input type="submit" />
</form>
But the form can still be submited.