Bootstrap select dropdown list placeholder

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

    This is for Bootstrap 4.0, you only need to enter selected on the first line, it acts as a placeholder. The values are not necessary, but if you want to add value 0-... that is up to you. Much simpler than you may think:

    
    

    This is link will guide you for further information.

提交回复
热议问题