How make select2 placeholder for search input

后端 未结 4 1005
渐次进展
渐次进展 2021-01-17 14:50

How to make placeholder for select2 jQuery plugin. On StackOverflow many answers how to make placeholder there, but they about element\'s placeholder. I need to specify a pl

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-17 15:17

    You must add class

    disabled selected hidden

    to first option element of select

提交回复
热议问题