title: jquery: make date picker show/hide via image?
body: <p>I want to use an image of a calendar to show/hide the jquery datepicker. Based on the documentation it looks like I need to set buttonImage and buttonImageOnly, which I have. the date picker is working but it is always visible. here is my code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function(){
  $("#datepicker").datepicker({ 
      altField: '#from', 
      altFormat: 'yymmdd', 
      buttonImage: 'datepicker.png', 
      buttonImageOnly: true, 
      defaultDate: &lt;?=getDaysFromToday($_GET['from'])?&gt;, 
      showOn: 'focus' 
      });
  });
  
  $('#datepicker').datepicker({
      onSelect: function(dateText, inst) {
      $("#myform").submit(); 
      }
  });
   &lt;/script&gt;
  </code></pre>
  
  <p>Also I am trying to make it submit a form when you choose a date, I can't seem to get that to work either.</p>
  
  <p>Am I doing something wrong?</p>
  
  <p>Thanks!</p>