javascript - Changing Custom Menu in JQuery Mobile -
javascript - Changing Custom Menu in JQuery Mobile -
i'm working jquery mobile. building form includes next code:
<label for="genderdropdownlist">gender</label> <select name="genderdropdownlist" id="genderdropdownlist" data-native-menu="false"> <option>unspecified</option> <option value="-1">unspecified</option> <option value="0">male</option> <option value="1">female</option> </select>
a custom menu shown here. right now, when clicks drop down, dialog appears multiple options. dialog title says "unspecified". know says because "unspecified" first option. want is, drop downwards default "unspecified" , dialog title "please choose...".
i can't seem figure out how this? don't see properties can set accomplish this. thought listening "tap" event, couldn't seem work either.
try this:
<label for="genderdropdownlist">gender</label> <select name="genderdropdownlist" id="genderdropdownlist" data-native-menu="false"> <option>please choose...</option> <option value="-1" selected="selected">unspecified</option> <option value="0">male</option> <option value="1">female</option> </select>
javascript jquery jquery-mobile
Comments
Post a Comment