views:

118

answers:

0

Hi, I am specifying a tabindex on a rails form. Below is example code for a select input and text input.

<div class="row">   <%= f.label :hrs, "Enter number of hours" %>   <%= f.select :hrs, VALID_HOURS::HOURS, {:selected => "8"}, {:tabindex => "3", :style =>'width:50px;', :class => "select"}  %> </div>

<div class="row">   <%= f.label :notes, "notes" %>   <%= f.text_field :notes, :maxlength => 30, :tabindex => "5", :style => 'width:200px;' %> </div>

I have two select fields and some input text fields. They don't seem to be getting focused in the right order. Also it does'nt seem to be tabbing over a few text fields.

thanks much.