title: Set Date to the Jquery UI datepicker input textbox
body: <p>I am using jquery ui datepicker.and its working fine .my need is to set the date to the textbox when querystring contain any date</p>
  
  <p>eg my url is <code>localhost:301/?date=2013-12-01</code></p>
  
  <p>so I want to set this date to input textbox.</p>
  
  <p>my input box html is</p>
  
  <pre><code>&lt;input type="text" id="datepicker" class="txt-cal hasDatepicker" name="addFromDate" date_name="2013-12-11"&gt;
  </code></pre>
  
  <p>I tried some thing but no result.</p>
  
  <pre><code>$(function () {
  
          var myDate = ?/*how to select the date_name from input textbox
          $('#datepicker').datepicker();
          $('#datepicker').datepicker('setDate', myDate);
          $('#datepicker2').datepicker();
          $('#datepicker2').datepicker('setDate', myDate);
          $('#datepicke3').datepicker();
          $('#datepicke3').datepicker('setDate', myDate);
          $('#datepicker4').datepicker();
          $('#datepicker4').datepicker('setDate', myDate);
  
  
      });
  </code></pre>
  
  <p>Thanks in advance</p>