title: jquery datepicker: set default date based on first date selection
body: <p>I have two date inputs and the second date needs to be after the first. I would therefore like the second input's datepicker to open up having the first date chosen. This is the "defaultDate" option, except it needs to be dynamic.</p>
  
  <p>Edit:</p>
  
  <p>So far I just initiate then the usual way:</p>
  
  <pre><code>$(function() {$( "#from_date" ).datepicker();  }); 
  $(function() {$( "#to_date" ).datepicker();  }); 
  </code></pre>