Re: form with to submits, which one to default to?
Posted by Dikkie Dik on 12/04/07 15:12
> Both cancel and save (in that order) are submits, then in the code I
> check which button was pressed.
> The point is that I want the save button (2nd) to be default, not the
> cancel.
>
> Is there a way (in js?) to "focus" the other button?
As a dirty hack, you could make the second button come first in the HTML
and flip it over with a stylesheet.