How can I automatically tab to the next field using jQuery?

前端 未结 4 1734
耶瑟儿~
耶瑟儿~ 2021-01-12 12:42

In jQuery, how can I trigger the behavior of a user tabbing to the next input field?

I\'ve tried this:

var e = jQuery.Event(\"keydown\");
e.which = 9         


        
4条回答
  •  一向
    一向 (楼主)
    2021-01-12 13:21

    There's a JQuery plugin available:

    http://www.mathachew.com/sandbox/jquery-autotab/

提交回复
热议问题