title: Set today's date as default date in jQuery UI datepicker
body: <p>I just want today's date  to be the default value in the input that is using jQuery UI's <code>datepicker</code>:</p>
  
  <pre><code>&lt;input id="mydate" type="text" /&gt;
  </code></pre>
  
  <p>I tried the below code but it didn't work:</p>
  
  <pre><code>var currentDate = new Date();  
  $("#mydate").datepicker("setDate",currentDate);
  </code></pre>