Help - Search - Members - Calendar
Full Version: Access keys in HTML
HTMLHelp Forums > Web Authoring > Web Site Functionality
user
Hi,
I need to add the "accessKey" attribute in the fields of the HTML form and am trying this in IE.

For Example:
<LABEL for="viewBySubType" accesskey="T"> Title </LABEL>
<select name="viewByType" id="viewByType" >
<option value ="Bot">Botany</option>
<option value="Zoo">Zoology</option>
<option value="Phy">Physics</option>
<option value="Che">Chemistry</option>
</select>


<LABEL for="SubType" accesskey="Ti"> Title </LABEL>
<select name="SubType" id="SubType" >
<option value ="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>

when i tried to do alt + "Ti" , previous select box selected first..
can anyone send me the conventions to follow while we use access keys
Please do needful.
pandy
Not sure why it goes to the second select, but it doesn't go to the first because you have a name mismatch. You use "viewBySubType" in the for and "viewByType" in the name and id.

Also, you can't use "Ti". It must be a single character.
http://www.w3.org/TR/html401/interact/form...#adef-accesskey
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.