title: Remember the input date in datepicker
body: <p>I am using datepicker. I have  two text fields fromdate and todate. For Example I input month of May when I submit and input a date again the default date should be May also not the current Month. </p>
  
  <p>Here is my code.</p>
  
  <pre><code> $(function() {
      var from = $('#from').val();
      $( "#from" ).datepicker({ dateFormat:'yy-mm-dd',
      changeMonth: true,
      changeYear:true,
      changeDay:true,
      numberOfMonths: 1,
      defaultDate:from,
      onClose: function( selectedDate ) {
      $( "#from" ).datepicker( "option", "fromDate", selectedDate );
      }
  
  });
  </code></pre>