title: Using .change() and a datepicker in jquery to submit a form
body: <p>Currently I'm using JQuery UI's datepicker range, and I've added some more javascript that should submit the form on the page when different form elements change.</p>
  
  <p>This works on the drop down I've added, as well as the date picker input boxes if I enter dates manually and then click away.</p>
  
  <p>However, if I click an input field for the datepicker, and the date chooser pops up, the form will not submit after choosing a date..</p>
  
  <p>Its as if the input field didn't know a change occured..?</p>
  
  <p><a href="http://api.jquery.com/change/" rel="nofollow">http://api.jquery.com/change/</a></p>
  
  <p>here is the code I'm using:</p>
  
  <pre><code>$(document).ready(function() {
  
                  $('#from').change(function() {
                    document.myform.submit();
                  });
  
              });
              $(document).ready(function() {
  
                  $('#to').change(function() {
                    document.myform.submit();
                  });
  
              });
  </code></pre>
  
  <p>Using the datepicker UI events, I've added the following code for testing but it isn't working.. any ideas?</p>
  
  <pre><code>$(document).ready(function() {
  
                  $('#from').datepicker({
                     onClose: function() { alert('Yo yo!') }
                  });
  
              });
  </code></pre>