作者:Jamie-逗比 | 来源:互联网 | 2022-12-23 18:46
Ihavemadeapageusingjquery,andonloaditselectsthefirsttextfieldautomatically.Iwanti
I have made a page using jquery, and on load it selects the first text field automatically. I want it to then move to the next field when the ENTER key is pressed.
我使用jquery创建了一个页面,并在加载时自动选择第一个文本字段。我希望它在按下ENTER键时移动到下一个字段。
$('.barcodeField input').bind('keyup', function(event) {
if(event.keyCode==13){
$("this + input").focus();
}
});
I can't find anything that works on the net. And I've scoured the forums.
我在网上找不到任何可行的东西。我在论坛上搜索过。
6 个解决方案