Form Focus with two Submit-Buttons

M

Martin Nadoll

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
 
D

DJ WIce

: 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top