title: jQuery DatePicker: Get Selected Date
body: <p>I need to be able to grab the selected date from the Datepicker and populate another textbox with the selected value. I am currently using the <code>onClose</code> function like this:</p>
  
  <pre><code>$('#defaultDate').datepicker({
      onClose:function(theDate) {
          $('#txtEntry1').text = theDate;
      }
  });
  </code></pre>