59

HTMLフォームのタブオーダーから要素を除外する方法はありますか?

したがって、次のものがあれば

<input type=text name=username>
<input type=text name=password>
<input type=button name=forgotpassword>
<input type=submit name=login>

tabindex を 1,2,3,4 として使用できることは承知していますが、すべてのフィールドに番号を付ける必要はありません。私のアプリケーションは動的にフィールドを作成しています。

ありがとう

ジェイソン

4

1 に答える 1

146

tabindex-1に設定すると、要素がタブ不可になります (単語の場合) :)

<input type="text" name="username" tabindex="-1" />
于 2010-10-09T04:34:52.557 に答える