jQuery Mobile 1.1.1 Custom Select Menu - Placeholder Text not Visible

前端 未结 1 794
面向向阳花
面向向阳花 2021-01-18 13:38

After upgrading to jQuery Mobile 1.1.1 earlier today (7/13/2012) I noticed that all of my Custom Select menus no longer show the placeholder text on page load. Is there som

相关标签:
1条回答
  • 2021-01-18 14:32

    this code is working for me :

    <select>
      <option value="" data-placeholder="true">Choose one:</option>
      <option value="1">One</option>
      <option value="2">Two</option>
    </select>
    

    Just put value="" on your placeholder option

    0 讨论(0)
提交回复
热议问题