title: Datepicker Submit form when select date
body: <p>please help me, how can i edit my javascript to submit form after select a date </p>
  
  <pre><code>     Date: &lt;div id="datepicker"&gt;&lt;/div&gt;
  
  
      &lt;form action='?data=$data' method='POST' enctype='multipart/form-data'&gt;&lt;/form&gt;
  
          &lt;script&gt;
        $(function() {
          $( '#datepicker' ).datepicker( $.datepicker.regional[ 'it' ] );
          $( '#locale' ).change(function() {
          $( '#datepicker' ).datepicker( 'option',
          $.datepicker.regional[ $( this ).val() ] );
  
      });
  
    });
   &lt;/script&gt;
  </code></pre>