How do I enable enter key submit?

Posted by Doug on Stack Overflow See other posts from Stack Overflow or by Doug
Published on 2010-04-12T01:05:32Z Indexed on 2010/04/12 1:13 UTC
Read the original article Hit count: 295

Filed under:

So two questions here: If I use <input type="button" onclick="validate()"> then the enter key wouldn't work. However, I can use type="submit" but how would I invoke validate()?

© Stack Overflow or respective owner

Related posts about JavaScript