在文本框焦点下一个文本框中按enter键 [英] pressing enter key in text box focus next text box

查看:120
本文介绍了在文本框焦点下一个文本框中按enter键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一旦我在文本框中输入键,光标应该转到下一个文本框(焦点应转到下一个文本框)。

Once i enter key is down in a text box the cursor should go to the next text box(the focus should go to next text box).

推荐答案

不要。

这不是用户受过培训的行为:ENTER是新行或提交表单。

TAB是下一步字段。



如果你颠覆它,你会混淆用户。这意味着他们不太可能使用您的网站,因为它不能按预期的方式工作。
Don't.
That isn't behaviour users are "trained" to expect: ENTER is "New Line", or "Submit Form".
TAB is "Next Field".

And if you subvert that, you confuse users. Which means they are less likely to use your site because it doesn't work the way they expect.


<script type='text/javascript'>


(function(){
var inputs =
(function(){ var inputs =


这篇关于在文本框焦点下一个文本框中按enter键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆