html - - how to allow only one item selected? -


I have a & lt; SELECT multiple & gt; area and I select the same option at the same time, but the user can hold the CTRL key and select more items at once.

Is there any way to do this? (I do not want to remove 'multiple').

Just select it multiple, but set a size for it, such as:

  & lt; Select name = "user" id = "userID" size = "3" & gt; & Lt; Options & gt; John & lt; / Options & gt; & Lt; Options & gt; Paul & lt; / Options & gt; & Lt; Options & gt; Ringo & lt; / Options & gt; & Lt; Options & gt; George & lt; / Options & gt; & Lt; / Select & gt;   

Work example:

Comments