tamble / jquery-ui-daterangepicker

A JQuery UI based date range picker.
MIT License
184 stars 110 forks source link

onClose fires before the form data is reliably inserted #52

Open markengelhardt opened 8 years ago

markengelhardt commented 8 years ago

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 commented 8 years ago

You should use onChange