Carl Franks wrote:
For the non-JS version to work, the 'Add Another X' button needs to be
a submit button - a plain 'button' won't submit the form, even with
type="submit" set.
However, for most form layouts, this means the 'Add Another X' button
will be *before* the "main" form submit button in the markup.
So, if the user clicks one of the buttons it works fine, but if the
user presses 'enter', the browser would submit the form using the
first submit button found in the markup - which for us is the wrong
button.

I ran into this problem on a project last year, I never found a solution that didn't involve an onsubmit handler. Unfortunately that won't work in this case...

Best,
Brian Kirkbride

_______________________________________________
Html-widget mailing list
Html-widget@lists.rawmode.org
http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget

Reply via email to