Bootstrap select dropdown list placeholder

前端 未结 19 1246
谎友^
谎友^ 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:35
    1. in bootstrap-select.js Find title: null, and remove it.
    2. add title="YOUR TEXT" in <select> element.
    3. Fine :)

    Example:

    <select title="Please Choose one item">
        <option value="">A</option>
        <option value="">B</option>
        <option value="">C</option>
    </select>
    
    0 讨论(0)
提交回复
热议问题