wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes How to check the LAST TAB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to check the LAST TAB?" Watch "How to check the LAST TAB?" New topic
Author

How to check the LAST TAB?

Giulietta Blumarine
Ranch Hand

Joined: Dec 03, 2004
Posts: 59
Hi!
I have several input text and every input text has its tabindex property!
When I open the page, if I push the tab, cursor sets itself on the first input text having the property tabindex=1.
It's correct.
The the cursor moves itself on the other field.
BUT when I reach the last tab the cursor moves itself up to the document and not on the first tab with tabindex=1.
It's correct because tab works in this way but then:
HOW can I obtain the cursor setted on the first tab???

Thanks a lot

Giu
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Not understanding your last sentence..aka the real question?

You want to force it to go to the first element?

Eric
Giulietta Blumarine
Ranch Hand

Joined: Dec 03, 2004
Posts: 59
Sorry for late.
Yes, the first element, which has tabindex=1!

Thank you
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to check the LAST TAB?