[英]Explicitly exclude an html element from the tab order
Is there anyway to exclude an element from the tab order of a HTML form. 无论如何要从HTML表单的Tab键顺序中排除元素。
So if i have the following 所以如果我有以下内容
<input type=text name=username>
<input type=text name=password>
<input type=button name=forgotpassword>
<input type=submit name=login>
I'm aware that I can use tabindex as 1,2,3,4 but i don't want to have to number all the fields. 我知道我可以使用tabindex作为1,2,3,4,但我不想对所有字段进行编号。 My application is dynamically creating the fields. 我的应用程序是动态创建字段。
Thanks 谢谢
Jason 贾森
将tabindex
设置为-1将使元素无法呈现(如果这是一个单词):)
<input type="text" name="username" tabindex="-1" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.