tabIndex not working for select or textarea in form_for

Hello all,
Maybe this is something easy to solve but I can set all my text_field
tabIndex by { :tabIndex => ‘2’}. When I try to do the same for the
select or the textarea it doesn’t work. Is there something I’m missing?

Thank you.

John

Solved my own issue.

Here’s what I’ve found…

  • new.html.erb -

    <%= f.label :project_department,'Project Department',{:tabIndex =>

    2}%>



    <%= f.select :project_department,
    [[‘Please select…’,’’], [‘BRIC’, ‘BRIC’],[‘OCR’,‘OCR’]] %>

    Instead of setting the tabIndex in the select, I set it in the label.
    This works fine in FireFox. I’ve found that using Safari the tabIndex
    issue never occurs. My next step is to test it in IE.

    Hope this helps someone with the same problem.

    John

    John M. wrote:

    Hello all,
    Maybe this is something easy to solve but I can set all my text_field
    tabIndex by { :tabIndex => ‘2’}. When I try to do the same for the
    select or the textarea it doesn’t work. Is there something I’m missing?

    Thank you.

    John