在HTML表单中的TAB按钮 [英] TAB button in HTML Form
本文介绍了在HTML表单中的TAB按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
http://www.mastersfunds。 com.php5-23.dfw1-2.websitetestlink.com/how-to-invest
正如在这种形式中看到的,当我将光标放入FIRST NAME字段,然后按键盘上的TAB,光标将移至右列下拉菜单而不是LAST NAME。
如何指定用户使用字段的顺序我的键盘上的TAB按钮?
解决方案
在输入中指定tabindex
<例如
< html>
< head>
< title>控制TAB顺序< / title>
< / head>
< body>
< form>
字段1(第一个选项卡选择):
< input type =textname =field1tabindex =1/>< br />
字段2(第三个标签选择):
< input type =textname =field2tabindex =3/>< br />
字段3(第二个选项卡选择):
< input type =textname =field3tabindex =2/>< br />
< / form>
< / body>
< / html>
编辑:同意评论,加引号。
http://www.mastersfunds.com.php5-23.dfw1-2.websitetestlink.com/how-to-invest
As seen in that form when I put my cursor in the FIRST NAME field and press TAB on my keyboard, the cursor goes to the right column dropdown instead of LAST NAME
How can I specify the order of the fields when a user uses the TAB button on my keyboard?
解决方案
specify tabindex in the input
eg
<html>
<head>
<title>Controlling TAB Order</title>
</head>
<body>
<form>
Field 1 (first tab selection):
<input type="text" name="field1" tabindex="1" /><br />
Field 2 (third tab selection):
<input type="text" name="field2" tabindex="3" /><br />
Field 3 (second tab selection):
<input type="text" name="field3" tabindex="2" /><br />
</form>
</body>
</html>
EDIT: agree with comment, added quotes.
这篇关于在HTML表单中的TAB按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文