title: jQuery UI date picker using input type="text"
body: <p>I am having trouble making my date picker work using the input <code>type="text"</code>. Any help would be great.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    $("#checkin").datepicker();
    $("#checkout").datepicker();
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css" rel="stylesheet"/&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"&gt;&lt;/script&gt;
  &lt;label for="checkin"&gt;Checkin&lt;/label&gt;
  &lt;input type="text" name="checkin" id="checkin" placeholder=" Check in"/&gt;
  
  &lt;label for="checkout"&gt;Checkout&lt;/label&gt;
  &lt;input type="text" name="checkout" id="checkout" placeholder=" Check out"/&gt;</code></pre>
  </div>
  </div>
  </p>