//功能:将回车键转tab键
$(function () {
$('input:text:first').focus();
var $enter = $("input[type=text],button[type='button'],select,textarea");
$enter .bind('keydown', function (e) {
var key = e.which;
if (key == 13) {
e.preventDefault();
var nextId = $enter.index(this) + 1;
$enter .eq(nextId).focus();
}
});

相关文章:

  • 2021-10-04
  • 2022-12-23
  • 2021-06-22
  • 2022-01-19
  • 2021-07-23
  • 2021-12-17
  • 2021-09-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案