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

onClose fires before the form data is reliably inserted #52

Open
markengelhardt opened this issue Mar 15, 2016 · 1 comment
Open

onClose fires before the form data is reliably inserted #52

markengelhardt opened this issue Mar 15, 2016 · 1 comment

Comments

@markengelhardt
Copy link

When the user finishes picking the dates, I want to submit the form:

This code works, but I have to wait a while then submit the form:

onClose: function () { setTimeout(function(){$('form#frmDate').submit();}, 3000); }

At times, this code does not insert any data into the form.

onClose: function () { $('form#frmDate').submit(); }

Can this be fixed, or is there a more reliable way to submit the form when the user is done picking dates?

@op16
Copy link
Contributor

op16 commented Mar 17, 2016

You should use onChange

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