title: JQuery Datepicker Get Selected Date
body: <p>I am currently working with 2 separate JQuery datepickers that I have modified the format to be able to pass through to store in a backend MySQL db.  </p>
  
  <pre><code>&lt;script&gt;
  $(function() {
  $( ".datepicker" ).datepicker({
          inline: true,
          showOtherMonths: true,
          dateFormat: 'yy-mm-dd',
          dayNamesMin: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],  
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <hr>
  
  <p>My date pickers are called here</p>
  
  <pre><code>&lt;input type="text" class='datepicker' name="datepicker1" /&gt;
  &lt;input type="text" class='datepicker' name="datepicker2" /&gt;
  </code></pre>
  
  <p>I have been trying to get the selected date to pass to php via ajax.  I have tried using the getDate function but have not had much luck.</p>
  
  <p>$(".datepicker").datepicker( 'getDate' );</p>