469,343 Members | 5,478 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,343 developers. It's quick & easy.

Form Focus with two Submit-Buttons

Hello,

i have a little problem and no idea :-(
i have a form with two buttons to submit it.
One button (must be left) goes to a detail-page and the second button (must
be right) goes to a basket-page.
Also there is a input-field.
My problem:
onLoad i give focus to the input-field.
But when user submits the form with return, the first button ("show
details") is executed, and you see the detail-page.
But i want to give focus to the ("into basket") button, but it comes after
the detail-button in source.
I cant change the buttons because it's not allowed by the designer :-(
Also on load of that page, the border of the first submit button is more
thick (i think 2 px) than the second (maybe 1px).
How can i submit to basket, with the return-key and give them the same look?

Thanks for any help,
Martin Nadoll
Jul 20 '05 #1
1 2017
: But when user submits the form with return, the first button ("show
: details") is executed, and you see the detail-page.
: But i want to give focus to the ("into basket") button, but it comes after
: the detail-button in source.
Maybe you can use the

tabindex="2" on the right button
and
tabindex="3" on the left?
and
tabindex="1" on the input field?

Wouter
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by JJ | last post: by
1 post views Thread by AnnMarie | last post: by
11 posts views Thread by greg.scharlemann | last post: by
reply views Thread by Chris | last post: by
5 posts views Thread by Navillus | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.