title: Is there a potential way to disable user input in a <datalist>?
body: <p>I'm debating between using a <code>&lt;select&gt;</code> or <code>&lt;datalist&gt;</code> to display a drop-down list from which the user can select the items.</p>
  
  <p>One downside of the <code>&lt;select&gt;</code> tag is that it's inconsistent as it renders differently in different browsers:  some browsers it displays with scroll bar, and for some it's a drop-down list.</p>
  
  <p>The <code>&lt;datalist&gt;</code> on the other hand seems good but I just want to know if there is any way to disable the text input where the user can type whatever they want in the text box if they don't click the down arrow button on the input field as shown:</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-html lang-html prettyprint-override"><code>​&lt;form action="demo_form.asp" method="get"&gt;
    &lt;input list="browsers" name="browser"&gt;
    &lt;datalist id="browsers"&gt;
      &lt;option value="Internet Explorer"&gt;
      &lt;option value="Firefox"&gt;
      &lt;option value="Chrome"&gt;
      &lt;option value="Opera"&gt;
      &lt;option value="Safari"&gt;
    &lt;/datalist&gt;
    &lt;input type="submit"&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Is there someway to disable the input bar while keeping the dropdown list?  I tried the 'readonly' attribute but that renders the whole  non-clickable.</p>