title: Automatically set selected date to altField on load
body: <p>I want to set the values of the datepicker field and the <code>altField</code> when the page is loaded, and I was wondering if there's an option in the datepicker to do that automatically (i.e. without having to call <code>setDate</code>).</p>
  
  <p>I know that if I do something like this:</p>
  
  <pre><code>$("#date-div").datepicker({altField:"#date-input",altFormat:"yy-mm-dd", defaultDate:+7});
  </code></pre>
  
  <p>With <code>date-div</code> being a <code>div</code>, the default date is automatically added to the <code>date-input</code> field when the page is loaded.
  But if I use a text field instead of a <code>div</code> it doesn't set the values automatically (I have to  call <code>setDate</code> in a separate line).</p>
  
  <p>I'm just curious about this, I have already implemented it calling setDate, but I would like to know if there's something to do it automatically and if not why? (since it does work when using a div to display the calendar).</p>