wenzhixin / multiple-select

A jQuery plugin to select multiple elements with checkboxes :)
http://multiple-select.wenzhixin.net.cn
MIT License
1.91k stars 651 forks source link

Can't set placeholder for Single select #586

Closed EvgeniyaSbitneva closed 1 year ago

EvgeniyaSbitneva commented 1 year ago

I've tried to set placeholder via html attribute and via js. For multiple select it works fine, but not for single.

wenzhixin commented 1 year ago

I use the showClear option and it working well: https://multiple-select-live.wenzhixin.net.cn/code/wenzhixin/15702

n0xx commented 9 months ago

Unfortunately it does not work on single select.

//edit But u can make it work by setting select as multiple and in options do:

single: true,
filter: false,
wenzhixin commented 9 months ago

https://multiple-select-live.wenzhixin.net.cn/code/wenzhixin/16908 Can you provide an example?