title: how to pass selected date to ajax load in jquery datepicker
body: <p>i am trying to pass selected date into function. </p>
  
  <pre><code>    $(function() {
      $( "#pickdate" ).datepicker({ dateFormat: 'yy-mm-dd' , 
          onSelect: function(){
          $("#container").load("sample.php", { "mydate": "howtogetselecteddate"});
          }
      });
  });
  </code></pre>