<!DOCTYPE HTML> <html> <head> <title>Untitled</title> <meta charset="utf-8"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> <script> $(function () { $(":text").on({"keypress": function (event) { event.which == 13 && event.preventDefault() }}) }); </script> </head> <body> <form action="http://"> <input type="text" /> <input name="" type="submit" value="send"> </form> </body> </html>