You can set it by using "tabindex" attribute to all your input elements. Please see sample below.
<input type="text" value="" name="text" tabindex="1"></input>
<input type="text" value="" name="text" tabindex="2"></input>
<input type="submit" value="submit" name="text" tabindex="3"></input>
You can also disable the tab index of an element by setting the value to "-1". This is very useful if you have an element that is hide or you set the opacity to be not visible. Please see sample below.
<input type="text" value="" name="text" style="opacity:0;" tabindex="1"></input>
<input type="text" value="" name="text" tabindex="-1"></input>
<input type="submit" value="submit" name="text" tabindex="2"></input>
Hope this is helpful!
No comments:
Post a Comment