How to prevent form submiting before DOM is ready?

Posted by Mask on Stack Overflow See other posts from Stack Overflow or by Mask
Published on 2009-10-20T10:16:31Z Indexed on 2010/03/27 22:13 UTC
Read the original article Hit count: 203

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about dom

Related posts about form