John
John

Reputation: 21957

stop select box multiple allowing users to select more than one option

I know this is a daft question but I have a select box with multiple='multiple' as I want it to appear as the box with the options rather than a drop down. Is there any way to keep this look but prevent the user from selecting more than one option (like what happens on a normal drop down). Using JQuery maybe. I tried removing the multiple='multiple' and adding a height but this did not work

Upvotes: 0

Views: 380

Answers (1)

o.k.w
o.k.w

Reputation: 25820

Have you tried:

<select size="n">

?

Upvotes: 3

Related Questions