views:

24

answers:

2

Is it possible to tab to a <select> element? I am creating a rather intensive form that would greatly benefit from being able to tab through everything not just the text fields.

<input type="text" name="date" value="00/00/0000" tabindex="1" />
<select name="hour" tabindex="2">
    <option value="1">01</option>
    <!-- Blah more -->
</select>
&nbsp;:&nbsp;

<select name="minute" tabindex="3">
    <option value="0">00</option>
    <!-- Blah -->
</select>

This code (above) does not work in Firefox (at least for me).

A: 

Your example at http://www.jsfiddle.net/jG89f/1/ seems to be working just fine ...

Could it be that you want to tab inside the select options ? then no you cannot do that out of the blue ... javascript would be required..

What browser you use btw ?

Gaby
@Gaby: So why does this not work in Firefox?
Josh K
@Josh K, i am using firefox 3.6.6 and 3.5.7 and it works just fine ..
Gaby
Try http://www.jsfiddle.net/jG89f/4/ .. does it not turn red when you tab around ?
Gaby
+1  A: 

Stupid OSX Settings:

alt text

Josh K
lol ... nice catch .. a good candidate for your FAQ :)
Gaby
As a person who develops on a Mac, getting this info was a huge time saver in my development.
Joel Crawford-Smith