Form Focus with two Submit-Buttons

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin Nadoll

    #1

    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


  • DJ WIce

    #2
    Re: Form Focus with two Submit-Buttons

    : 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


    Comment

    Working...