title: how to get the selected date in jquery
body: <p>i have followed</p>
  
  <pre><code>&lt;!doctype html&gt;
  
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;title&gt;jQuery UI Datepicker - Display inline&lt;/title&gt;
      &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" /&gt;
      &lt;script src="http://code.jquery.com/jquery-1.8.3.js"&gt;&lt;/script&gt;
      &lt;script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" href="/resources/demos/style.css" /&gt;
      &lt;script&gt;
      $(function() {
          $( "#datepicker" ).datepicker();
      });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  Date: &lt;div id="datepicker"&gt;&lt;/div&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/fgMc3/1/" rel="nofollow">this</a> to get calendar and got the calendar to be displayed on the page always.</p>
  
  <p>Now i want to get the date selected and pass it to other function to process.</p>
  
  <p>How to do this.</p>
  
  <p>Best Rgards</p>