I am currently using the jQuery UI datepicker range, and I have added some more javascript that should send the form on the page when various form elements change.
This works on the dropdown I added, as well as the date input fields, if I enter the dates manually, then click away.
However, if I click on the input field for datepicker and select a date, the form will not be submitted after selecting the date.
As if the input field did not know that a change has occurred.?
http://api.jquery.com/change/
here is the code i use:
$(document).ready(function() { $('#from').change(function() { document.myform.submit(); }); }); $(document).ready(function() { $('#to').change(function() { document.myform.submit(); }); });
Using datepicker UI events, I added the following code for testing, but it doesn't work .. any ideas?
$(document).ready(function() { $('#from').datepicker({ onClose: function() { alert('Yo yo!') } }); });
source share