HighDots Forums  

tabIndex not working for select or textarea in form_for

Ruby On Rails Talk Ruby On Rails programming language mailing list


Discuss tabIndex not working for select or textarea in form_for in the Ruby On Rails Talk forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Mcleod
 
Posts: n/a

Default tabIndex not working for select or textarea in form_for - 11-05-2009 , 09:29 AM






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/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #2  
Old   
John Mcleod
 
Posts: n/a

Default Re: tabIndex not working for select or textarea in form_for - 11-05-2009 , 09:47 AM






Solved my own issue.

Here's what I've found...

- new.html.erb -

<tr>
<td>
<%= f.label roject_department,'Project Department',{:tabIndex =>
2}%>
</td>
<td>
<%= f.select roject_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:
Quote:
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/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.