Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
tabIndex not working for select or textarea in form_for
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
John Mcleod  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 14:29
From: John Mcleod <rails-mailing-l...@andreas-s.net>
Date: Thu, 5 Nov 2009 15:29:27 +0100
Local: Thurs 5 Nov 2009 14:29
Subject: 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
--
Posted via http://www.ruby-forum.com/.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Mcleod  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 14:47
From: John Mcleod <rails-mailing-l...@andreas-s.net>
Date: Thu, 5 Nov 2009 15:47:49 +0100
Local: Thurs 5 Nov 2009 14:47
Subject: 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/.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google