aboutsummaryrefslogtreecommitdiffstats
path: root/demos/selectmenu
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-04-08 15:00:16 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2015-04-08 15:00:16 +0200
commit2d0f05b25dfd308f306ffb2fe1e42380b3b3daa7 (patch)
treec59738fac64cc9a6a914d214423acff67f8aec6b /demos/selectmenu
parentc5b215e319e4b6d70d1b5f64ac0926b82a55707d (diff)
downloadjquery-ui-2d0f05b25dfd308f306ffb2fe1e42380b3b3daa7.tar.gz
jquery-ui-2d0f05b25dfd308f306ffb2fe1e42380b3b3daa7.zip
Selectmenu: Add a disabled-default option example to default demo
Ref gh-1520
Diffstat (limited to 'demos/selectmenu')
-rw-r--r--demos/selectmenu/default.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/demos/selectmenu/default.html b/demos/selectmenu/default.html
index a845b1dba..5fa1af28b 100644
--- a/demos/selectmenu/default.html
+++ b/demos/selectmenu/default.html
@@ -22,6 +22,8 @@
.selectmenu()
.selectmenu( "menuWidget" )
.addClass( "overflow" );
+
+ $( "#salutation" ).selectmenu();
});
</script>
<style>
@@ -87,6 +89,16 @@
<option>18</option>
<option>19</option>
</select>
+
+ <label for="salutation">Select a title</label>
+ <select name="salutation" id="salutation">
+ <option disabled selected>Please pick one</option>
+ <option>Mr.</option>
+ <option>Mrs.</option>
+ <option>Dr.</option>
+ <option>Prof.</option>
+ <option>Other</option>
+ </select>
</fieldset>
</form>