Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #33975

Re: Issue with two submit button for one form

From Osmo Saarikumpu <osmo@weppipakki.com>
Newsgroups comp.lang.javascript
Subject Re: Issue with two submit button for one form
Date 2017-09-12 07:47 +0300
Organization A noiseless patient Spider
Message-ID <op7osv$356$1@dont-email.me> (permalink)
References <978f5753-ab82-4206-89cc-1d91e98a9fcc@googlegroups.com>

Show all headers | View raw


On 12/09/2017 01:37, justaguy wrote:
> As the names suggest, "Save & Continue" is supposed to save the data and the form stays on while "Save & Exit" is supposed to send the form to be processed (and we leave this page).

> <input type="submit" id="save-and-continue" ...

What happens if you change the above to:

<input type="button" id="save-and-continue" ...

?

See:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/button

-- 
Best wishes, Osmo

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Issue with two submit button for one form justaguy <lichunshen84@gmail.com> - 2017-09-11 15:37 -0700
  Re: Issue with two submit button for one form Osmo Saarikumpu <osmo@weppipakki.com> - 2017-09-12 07:47 +0300
  Re: Issue with two submit button for one form JJ <jj4public@vfemail.net> - 2017-09-12 18:23 +0700
    Re: Issue with two submit button for one form justaguy <lichunshen84@gmail.com> - 2017-09-14 15:30 -0700
    Re: Issue with two submit button for one form Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-09-19 10:55 +0200

csiph-web