[英]When i Click Enter multiple times then Record created multiple times
when i click Entyer multiple times the record creates multiple times 当我多次单击Entyer时,记录将创建多次
$(document).keydown(function (e) {
debugger;
// Create receipt on press key enter
if (e.keyCode == 13) {
$("input[id='BtnCreate'").focus().click();
return false;
}
// Go back the previous page on press esc key
if (e.keyCode == 27) {
var url = $("#btnCancel").attr("href");
window.location = url;
return false;
}
});
},
$(document).keydown(function (e) {
debugger;
// Create receipt on press key enter
if (e.keyCode == 13) {
$("input[id='BtnCreate'").focus().click();
$('#BtnCreate').off();
return false;
}
// Go back the previous page on press esc key
if (e.keyCode == 27) {
var url = $("#btnCancel").attr("href");
window.location = url;
return false;
}
});
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.