title: jquery datepicker in div, position is null error
body: <p>I want to use a datepicker, but I don't need any input field to populate selected date, just grab selected value and use for my needs.</p>
  
  <p>I'm implementing such case: have a div, if user clicks on div datepicker must be shown.</p>
  
  <p>Could not make it work. Last implementation with hidden input field, but it also fails with error "position is null", because control could not get offset of hidden element..</p>
  
  <p>Any ideas for implementation? </p>
  
  <p>JS code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      $(function () {
  
          $('.datepicker').datepicker();
  
          $('.datepicker-holder').live('click', function () {
              $('.datepicker').not('.hasDatePicker').datepicker('show');
          });
  
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Markup:</p>
  
  <pre><code>&lt;div class="datepicker-holder"&gt;
      &lt;input class="datepicker" type="hidden"/&gt;
  &lt;/div&gt;
  </code></pre>