title: how to show a jquery datepicker on button click
body: <p>I want to show a datepicker only on button click</p>
  
  <pre><code>&lt;input type="button" id=day value="day" /&gt;
  $("#day").datepicker();
  </code></pre>
  
  <p>the above line fills the button text with the selected date</p>
  
  <p>I have also tried with below code but nothing happens</p>
  
  <pre><code>$("#day").click(function() {
      $("#hiddenField").datepicker('show');
  });
  </code></pre>