Default Submit Button

How do I specify that a particular button is
the default submit button?  Why?  I have
multiple fields, with list boxes and an 
"Add" button next to each list box.  Then
I have a "Submit" button at the bottom.

Problem is... when someone presses ENTER
it grabs the nearest Add button.  Not good.
I noticed that this was brought up in 1995,
this has been solved somehow, no?

The most obvious, <INPUT type="SUBMIT" DEFAULT 
doesn't work and I don't see DEFAULT anywhere
in any of the recent specifications.

Users-be-frustratedly-yours,

Clark

...

From: "Paul W. Barber" <barbe016@maroon.tc.umn.edu>
To: www-html@w3.org
Date: Wed, 1 Nov 1995 20:36:55 -5
Subject: Proposal:  Default Button on Forms
Message-Id: <30982eaf679b002@maroon.tc.umn.edu>

I would like to suggest that there be a way of indicating a default 
Button on a Fill-out Form.  The way I understand the current spec is 
as follows (from 
http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/fill-out-forms/overview.html
-
Things to Note)
========================================================
A "submit" element is necessary in all forms except those
     containing only a single INPUT element of type
     TEXT (in which case Return in the text entry
     area submits the form) or at least one INPUT element
     of type IMAGE (in which case a click in the image
     submits the form).
========================================================

When a form has multiple Text areas, it would be helpful to be able 
to indicate a default Button.  This could possible by implemented as 
such:

<INPUT TYPE="submit" DEFAULT="True" VALUE="Submit">

This would allow the user of the Fill-out Form to simply press the 
keyboard Enter to submit the form when it has multiple Text entries.  
It would also be useful with multiple Submit Buttons where the HTML 
author could decide which is the most common response and indicate it 
with the Default tag.
--------------------------------------------------------
Paul Barber
barbe016@maroon.tc.umn.edu
<A HREF="http://www.umn.edu/nlhome/m028/barbe016/">Paul's Home
Page</A>
<A HREF="http://freenet.msp.mn.us/ip/nhoods/mpls/dmra/">Downtown
Minneapolis Residents Association (DMRA)</A>

Received on Saturday, 8 September 2001 11:53:11 UTC