Selectmenu: Add a disabled-default option example to default demo

Ref gh-1520
This commit is contained in:
Jörn Zaefferer 2015-04-08 15:00:16 +02:00
parent c5b215e319
commit 2d0f05b25d

View File

@ -22,6 +22,8 @@
.selectmenu() .selectmenu()
.selectmenu( "menuWidget" ) .selectmenu( "menuWidget" )
.addClass( "overflow" ); .addClass( "overflow" );
$( "#salutation" ).selectmenu();
}); });
</script> </script>
<style> <style>
@ -87,6 +89,16 @@
<option>18</option> <option>18</option>
<option>19</option> <option>19</option>
</select> </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> </fieldset>
</form> </form>