Solved

form tab index/order

Posted on 2007-12-01
3
199 Views
Last Modified: 2010-04-21
Hey i have a form on a page, how can i force the first input field to be the first in the tab order and already selected?
0
Comment
Question by:Alan-Yeo
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
Sinoj Sebastian earned 500 total points
ID: 20388787
you can use TABINDEX property to get the taborder

<INPUT id="name" TABINDEX=1>
<INPUT id="email" TABINDEX=2>
etc..

and on the body tag   onload="document.getElementById('name').focus();"
0
 

Author Closing Comment

by:Alan-Yeo
ID: 31412119
Perfect straight forward answer :D thank you
0
 
LVL 12

Expert Comment

by:Sinoj Sebastian
ID: 20389006
Thanks for the Points, Grade and take me to a new level "Master in JavaScript"
:)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question