JQuery Mobile 1.1.1 Custom Menu - Bookmark Text Does Not Display

After upgrading to jQuery Mobile 1.1.1 earlier today (7/13/2012), I noticed that all my Custom Select menus no longer display placeholder text when the page loads. Is there something I need to do differently in 1.1.1 to show placeholder text in custom selection menus? Help!?!?

Here is an example of my code:

<div data-role="fieldcontain" class="ui-hide-label no-field-separator"> <label for="ceiling" class="select" data-theme="a">Ceiling</label> <select name="ceiling" id="ceiling" data-theme="a" data-native-menu="false" class="required"> <option data-placeholder="true">Ceiling (Yes/No)</option> <option value="Yes">Ceiling: Yes</option> <option value="No">Ceiling: No</option> </select> </div> 

Example image (black bars are my custom menus): enter image description here

+6
source share
1 answer

this code works 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 replacement option.

-2
source

Source: https://habr.com/ru/post/920444/


All Articles