title: How to select input date as default in JQuery datepicker?
body: <p>I have an ASP.NET application which uses JQuery datepicker for picking dates in some text boxes. For some date textboxes, I populate the date textbox from my database. When this textbox is clicked my JQuery datepicker appears, and it shows the current month with Today highlighted. This is fine for empty textboxes, however sometimes the text box is populated from the database.</p>
  
  <p>When the textbox is not empty I want the datepicker to show the textbox month and have the selected date to be the textbox date.</p>
  
  <p>Is this possible?</p>
  
  <p>Here's my current javascript code in my asp.net script header:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(function () {
          $('#myTextBox').datepicker({
              dateFormat: 'dd-M-yy',
              numberOfMonths: 2,
              autoSize: true,
              changeMonth: true,
              changeYear: true,
              showButtonPanel: true,
              maxDate: 0
          });
      });  
  &lt;/script&gt;
  </code></pre>
  
  <p>Thanks,
  Mark.</p>