Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6187163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:00:45+00:00 2026-05-24T02:00:45+00:00

Is there a technique to use an accesskey attribute on an <option> tag? I

  • 0

Is there a technique to use an accesskey attribute on an <option> tag?

I know you can use it on a <select>, but I have a requirement to use it on an <option> within a <select>.

Example: I need to do something like this?

<select>
    <option>Blah</option>
    <option accesskey="5">5</option>
</select>

Thanks for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:00:46+00:00Added an answer on May 24, 2026 at 2:00 am

    Having an accesskey attribute on an <option> tag doesn’t validate as HTML4, but does as HTML5.

    I’ve made a test case on JSFiddle — accesskey 9 is assigned to the text field, whilst accesskey 2 is assigned to the second <option> in the <select>.

    Firefox 5 on the Mac doesn’t focus the <option> when you activate its accesskey (using CTRL+2 — see http://en.wikipedia.org/wiki/Access_key#Access_in_different_browsers), but Chrome 12 does (CTRL+ALT+2).

    Theoretically, you could write some JavaScript to listen for this specific key combination and set the <select>’s selected option, but I’m not sure if that’s worth it, or a good idea — it might confuse users more than anything else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a pattern, Xml structure, architecture technique we can use to create simple
i'm using spring+tapestry for authenticate webuser. I wonder is there any technique i can
In my current project I have to decide which technique to use when branching.
Is there a jQuery technique to select all the page controls/divs with a non-zero
I have seen 'headways' which is a wordpress framework use this technique to easily
Is there other technique like RVO (return value optimization) or NRVO (named return value
Is there any technique available in Java for intercepting messages (method calls) like the
In C# is there a technique using reflection to determine if a method has
First is there any technique for using Action Script for recording sound from microphone?
I am wondering if there is any technique out there for making HTML code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.