...

View Full Version : Tab control with hidden input fields



bboyle
07-08-2003, 12:24 PM
When I have a hidden input field on my webpage and I use the tab key to traverse my fields, the cursor always moves to the hidden input field. This means that I have to press tab twice to move to the next visible field. Is there any way that I can skip the hidden input field when I am using the tab key?
Thanks

Kor
07-08-2003, 02:17 PM
Change the focus to the next field, something like:

<html>
<head>
</head>
<body>
<form>
<input type="text" name="textfield">
<input type="text" readonly name="textfield2" onfocus="javascript:document.forms[0].textfield3.focus()">
<input type="text" name="textfield3">
</form>
</body>
</html>

shlagish
07-08-2003, 05:56 PM
brilliant

joh6nn
07-08-2003, 06:07 PM
http://www.w3.org/TR/REC-html40/interact/forms.html#adef-tabindex



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum