How can I highlight the <input type="submit"> object that I want to
highlight?
1. In my form, the user enters his ID. He sees two submit "buttons,"
left labeled Cancel, the right labeled Signup.
2. If he enters his ID and selects the Signup button with his mouse,
all is well.
3. But if he enters his ID and then hits the Enter key, then the
(highlighted) Cancel button is taken.
4. Obviously it needs to be the other way around: Enter key must take
the Signup path.
How can I highlight the Signup button when the user enters the form
such that when he strikes the Enter key, the action on that Signup
button is taken? I don't find the answer to precisely this question in
the FAQ.
The form that shows the problem is at:
http://www.pwilson.net/submit-demo.html
Problem appears in IE6.0, Avant 10.1, and Firefox 0.10.1 (no visual
highlighting cue in FF, but the effect is the same).
I see that right-clicking the mouse anywhere inside the table (green
border) that's inside the form (red border) highlights the Cancel
button. Clicking anywhere outside that table removes the highlighting.
I have tried a few things, like adjusting the layout so that the
Signup button is first in the character stream but is displayed on the
right. Also tried tabindex. None of that worked for me.
Thanks so much for your help!
-- Pete Wilson