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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -