[Html-widget] Re: repeatable element

Brian Kirkbride brian.kirkbride at deeperbydesign.com
Tue Mar 20 17:33:35 GMT 2007


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



More information about the Html-widget mailing list