How do I disable form submit with enter key?

Posted by zsharp on Stack Overflow See other posts from Stack Overflow or by zsharp
Published on 2010-04-30T18:44:48Z Indexed on 2010/04/30 18:47 UTC
Read the original article Hit count: 218

Filed under:

I have a js event on enter keypress which works fine. But after that event it also submits the form which has a submit button. How do I stop that submit button from getting focus after the previous keypress event?

© Stack Overflow or respective owner

Related posts about JavaScript