title: jQuery: datepicker, auto click /pick a date
body: <p>I have this:</p>
  
  <pre><code>    &lt;script&gt;
      $(function() {
          $( "#datepicker" ).datepicker({
           dateFormat : "yy-mm-dd",
            onSelect: function(dateText) {
              $.post('/admin/deals/booking/', 
              { date: dateText }, function(data) {
  
                  if(data != '0')
                  {
                      $('input[name=book_date]').val(dateText);
                      $('#results').html(data);
                      $('.current_text').html(dateText);
                      $('.book_deal').removeAttr("disabled");
                  }
              });
            }
          });
  
          $( "#button" ).bind('click', function(){
  });
      });
      &lt;/script&gt;
  </code></pre>
  
  <p>I want when pressing on #button it should activate the above #datepicker, like you have clicked on the date and selected date 2012-02-02</p>
  
  <p>How can this be done?</p>