<SELECT multiple> - how to allow only one item selected?

后端 未结 8 1056
遇见更好的自我
遇见更好的自我 2021-01-29 23:44

I have a

提交评论

  • 2021-01-30 00:39

    Just don't make it a select multiple, but set a size to it, such as:

      <select name="user" id="userID" size="3">
        <option>John</option>
        <option>Paul</option>
        <option>Ringo</option>
        <option>George</option>
      </select>
    

    Working example: https://jsfiddle.net/q2vo8nge/

    0 讨论(0)
  • 提交回复
    热议问题