开发者

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

开发者 https://www.devze.com 2023-02-15 02:15 出处:网络
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 prev

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 开发者_C百科but this did not work


Have you tried:

<select size="n">

?

0

精彩评论

暂无评论...
验证码 换一张
取 消