SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru
    Join Date
    Dec 2001
    Location
    San Diego, CA
    Posts
    617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    tabbing between textfields

    I have a problem with some HTML for my PHP news script. In the form where users add comments, I have some clickable smilies. However, when you tab from one field prior to the main comment textarea, it starts tabbing through all the smilies first. Is there a way to set the focus to go from the text field for the email directly to the comment textarea?

    Example: http://projects.ashwebstudio.com/ash...comments&id=19 (this is my demo version, so post all you want, do whatever you want )

  2. #2
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Add something like tabindex="32767" to all those smiley links.

  3. #3
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yup use the tabindex attribute like mattjacob said... only you could also add a tabindex to the fields you want too...
    Code:
    Field 1<input type="textbox" tabindex="1" /><br />
    Field 2<input type="checkbox" tabindex="2" /><br />
    Field 3<input type="textbox" tabindex="3" /><br />

  4. #4
    SitePoint Guru
    Join Date
    Dec 2001
    Location
    San Diego, CA
    Posts
    617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, works like a charm


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •