jQuery捕获返回键事件代码。

复制代码代码如下所示:

$(‘形')。Keydown(函数(事件){
如果(密码= = 13事件。){
document.getelementbyid('ctl00)提交();
}
});