Kev*_*ril 1 javascript php forms
http://www.mastersfunds.com.php5-23.dfw1-2.websitetestlink.com/how-to-invest
当我将光标放在FIRST NAME字段并按下键盘上的TAB时,在该表单中看到,光标将转到右列下拉列表而不是最后一个名称
当用户使用键盘上的TAB按钮时,如何指定字段的顺序?
小智 7
在输入中指定tabindex
例如
<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>
Run Code Online (Sandbox Code Playgroud)
编辑:同意评论,添加引号.