Solved

form tab index/order

Posted on 2007-12-01
3
200 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:Antonio King
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Antonio King
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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 code hide show and toggles. 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…

761 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