Bootstrap select dropdown list placeholder

前端 未结 19 1248
谎友^
谎友^ 2021-01-29 22:39

I am trying to make a dropdown list that contains a placeholder. It doesn\'t seem to support placeholder=\"stuff\" as other forms do. Is there a different way to ob

19条回答
  •  生来不讨喜
    2021-01-29 23:30

    All this options are.... improvisations. Bootstrap already offers a solution for this. If you want to change the placeholder for all your dropdown elements you can change the value of

    noneSelectedText in the bootstrap file.

    To change individualy, you can use TITLE parameter.

    example:

提交回复
热议问题