title: Disabling datepicker on an input field
body: <p>Cuurently I have an input field using <code>datepicker</code>. I am wondering how to disable the datepicker callendar popping up when I click on that field, since on my page I want the date option to be available only on certain conditions.</p>
  
  <pre><code>&lt;input id="date" type="text " class="form-control datepicker" name="date" value="Click to select date"&gt;
  </code></pre>
  
  <p>I tried with  : </p>
  
  <pre><code> $("#date").datepicker('disable');
  </code></pre>
  
  <p>And with : </p>
  
  <pre><code>$( "#date" ).datepicker( "disabled", true );
  </code></pre>
  
  <p>None worked.</p>