This worked for me:
<form action=/home> <input name=a> <input type=submit> </form> <script> $(function() { $('form').bind('keypress', function(event) { if (event.keyCode == 13) { $('form').submit() } }); }); </script>
This worked for me:
<form action=/home> <input name=a> <input type=submit> </form> <script> $(function() { $('form').bind('keypress', function(event) { if (event.keyCode == 13) { $('form').submit() } }); }); </script>