Bootstrap select dropdown list placeholder

前端 未结 19 1608
谎友^
谎友^ 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:20

    Here's another way to do it

    
    

    "Choose Platform" becomes the placeholder and the 'required' property ensures that the user has to select one of the options.

    Very useful, when you don't want to user field names or Labels.

提交回复
热议问题