SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I want to skip some of INPUT elements when user hits TAB key.

    Hi All,

    I have a form that has some INPUT elements which is readonly.

    I want, if user hit TAB key on keyboard INPUT element shoud NOT focus.

    I want to skip INPUT elements with readonly property when user hits TAB key.

    <input type="text" name="previous_name" value="World" readonly="true" tabstop="false">

    Is it possible in HTML?

    Or, is it possible with Javascript?

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    You can use the tabindex attribute
    HTML Code:
    <input type="text" tabindex="1" name="previous_name" value="World" readonly="true" tabstop="false">
    Jope it helps.


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
  •