Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting the focus with Tab key

Status
Not open for further replies.

smellykat

Programmer
Mar 4, 2002
33
US
I have a page that has 2 input boxes and one select box, 5 rows. So I have a total of 15 "items on my spreadsheet". When I tab across the fields, the order is correct - it goes from text1 to text2 to dropdown3, then text4, text5, dropdown6...this is done with TABINDEX.

My problem is that when the tab is on the dropdown list, the field is not highlighted, so the user does not know that the tab is actually there. Only if the user hits the up/down arrow will they notice that their tab is in fact on the dropdown, and a choice will be selected. How can I force the field to be highlighted when the tab is in it?
 
on your drop down list, u can add onfocus event which drive your dropdown list to be selected at 1st option. and that would need one javascript function.

hope it helps :0)
*JJ26*
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top