Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resending with altered form details sends the same again #7

Open
smxmn opened this issue Jul 17, 2016 · 1 comment
Open

Resending with altered form details sends the same again #7

smxmn opened this issue Jul 17, 2016 · 1 comment

Comments

@smxmn
Copy link

smxmn commented Jul 17, 2016

Pressing on submit the second time sends the same data, even if I change every input field.
Chrome Version 51.0.2704.103 m (64-bit), win7.

@miXwui
Copy link

miXwui commented Jun 5, 2017

Hey @smxmn , it's been almost a year but maybe this will help someone out:

It's because:
$('#input-form').one('submit',function(){

http://api.jquery.com/one/
"Attach a handler to an event for the elements. The handler is executed at most once per element per event type."

If you change one to on like so (http://api.jquery.com/on/):
$('#input-form').on('submit',function(){

the issue should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants