Select dropdown with the Style of Multiple select dropdown

How do i make the normal select dropdown

<select>
  <option value="">OPTION</option>
  <option value="">OPTION</option>
  <option value="">OPTION</option>
  <option value="">OPTION</option>
  <option value="">OPTION</option>
</select>

looks exactly like

<select name="" id="" multiple>
  <option value="">OPTION</option>
  <option value="">OPTION</option>
  <option value="">OPTION</option>
  <option value="">OPTION</option>
  <option value="">OPTION</option>
</select>

But with the ability to only click one option, And clicking any other option changes the value.

Answers 1

  • <select size="5">
      <option value="">OPTION</option>
      <option value="">OPTION</option>
      <option value="">OPTION</option>
      <option value="">OPTION</option>
      <option value="">OPTION</option>
    </select>
    

Related Articles