title: Jquery datepicker - manual triggering
body: <p>I'm using a jquery datepicker in one of my project and I need to trigger the datepicker by clicking on a hyperlink which is next to my input area.</p>
  
  <p>Unfortunately I can't get this working for some reason.</p>
  
  <p>I have an input area and the hyperlink I would like to trigger a calendar in the input area.</p>
  
  <pre><code>&lt;input type="text" id="date" /&gt;&lt;a href="#" class="trigger"&gt;Show calendar&lt;/a&gt;
  </code></pre>
  
  <p>I've tried to come up with a Javascript code such as:</p>
  
  <pre><code>$(".trigger").click(function(){ 
  $("#date").datepicker("show"); 
  }); 
  </code></pre>
  
  <p>As someone else in one of previous discussion suggested to use a SHOW method to make the calendar pop up. But it doesn't work.</p>
  
  <p>Code such as </p>
  
  <pre><code>$(function() {
  $("#date").datepicker();
  });
  </code></pre>
  
  <p>works fine, but just by clicking into an input area (not on triggering hyperlink).</p>
  
  <p>Does anyone have any idea or suggestion how to get this working? Becouse as far as I know I'm not the only one chasing the solution.</p>
  
  <p>Thank you very much! ;)</p>