title: jquery close datepicker when input lose focus
body: <p>I'm using datepicker inside my input , my last field is the datepicker input , after validating it i want to set focus on another input inside my form , but the problem is the datepicker is not closed even taht it does not have the focus.. </p>
  
  <p>how can I close the datepicker when i set the focus on another input field?
  (I tried .datepicker("hide"); but it did not worked for me).</p>
  
  <p><strong>UPDATE:</strong>
  this is my code:</p>
  
  <pre><code>$(function()
      {    $( "#test_date" ).datepicker({
                  dateFormat: "dd/mm/yy"
          });
          });
   //when i call my function:
   $( "#test_date" ).datepicker("hide"); //---&gt; this does not work!
  </code></pre>
  
  <p>Thank's In Advance.</p>