Reply to Re: form with to submits, which one to default to?

Your name:

Reply:


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.

Good luck

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация