<form></form>标签内input元素回车会默认提交表单。

阻止回车默认提交表单:

$('form').on('keydown', function (event) {
    if (event.keyCode == 13) return false;
})

 

相关文章: