开发者

Converting multiple select to appear as a regular select

开发者 https://www.devze.com 2023-03-26 22:32 出处:网络
I\'m curre开发者_如何学JAVAntly slicing up a new site design and I want to make a multiple select look and feel the same way that a regular select does, but have the user control+click to choose multi

I'm curre开发者_如何学JAVAntly slicing up a new site design and I want to make a multiple select look and feel the same way that a regular select does, but have the user control+click to choose multiple options.

Does anyone have any advice on how to achieve this goal? I am using the uniform js plugin with jQuery for the rest of my input styles.

Many thanks!


<select multiple="multiple" size="1">
...
</select>

This won't behave as a non-multiple select element.


Since you are using jQuery already, I would suggest jQuery UI MultiSelect Widget.

0

精彩评论

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