$(".jsfocus").keydown(function (event) {
var code = event.which;
if (code === 13) {
var id = $(this).index(".jsfocus");
$(".jsfocus").eq((id + 1)).focus();
if ($(this).val() != "") {
$(".jsfocus").eq((id + 1)).select();
}
}
});
$(".jssubmit").keydown(function (event) {
var code = event.which;
if (code === 13) {
alert(1);
$("#btn_submit").click();
}
});
05-05
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交