表单输入完毕后回车自动提交 jquery 表单输入完毕后回车自动提交 jquery 2015 年 7 月 17 日 北漂小兄弟 Comments 0 Comment $(function(){ //回车自动提交 $(‘body’).keypress(function(event){ if(event.which==13){ $(‘#ajax_login_form’).submit(); } }); 打赏赞(1)分享