tabindex not working on rails form

Posted by ash34 on Stack Overflow See other posts from Stack Overflow or by ash34
Published on 2010-04-30T19:33:50Z Indexed on 2010/04/30 19:37 UTC
Read the original article Hit count: 613

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about html