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 -- Posted via http://www.ruby-forum.com/.
John Mcleod
2009-Nov-05 14:47 UTC
Re: tabIndex not working for select or textarea in form_for
Solved my own issue. Here''s what I''ve found... - new.html.erb - <tr> <td> <%= f.label :project_department,''Project Department'',{:tabIndex => 2}%> </td> <td> <%= f.select :project_department, [[''Please select...'',''''], [''BRIC'', ''BRIC''],[''OCR'',''OCR'']] %> </td> </tr> 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 Mcleod 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-- Posted via http://www.ruby-forum.com/.