title: Jquery UI datepicker inline getDate on select
body: <p>How would I get the selected date from this, to pass via a POST?</p>
  
  <pre><code> &lt;script&gt;
      $(function() {
          $( "#datepicker" ).datepicker();
          var arrival = $("#datepicker").datepicker("getDate");
   });
  &lt;/script&gt;
  </code></pre>
  
  <p>And I get the calendar working like this:</p>
  
  <pre><code>&lt;div id="datepicker" class="demo"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Because is not an input, is a DIV I have this problem.<br>
  See: <a href="http://jqueryui.com/demos/datepicker/#inline" rel="nofollow">http://jqueryui.com/demos/datepicker/#inline</a> </p>