Select: doesn't display option with empty value.
Try this code. Option with label "-------------" is not displayed at all. (FF 3.6)
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js"
djConfig="parseOnLoad: true">
</script>
<script>
dojo.require("dijit.form.Select");
</script>
</head>
<body class="claro">
<select name="select" dojoType="dijit.form.Select">
<option value="">-------------</option>
<option value="TN" selected="selected">Tennessee</option>
<option value="VA">Virginia</option>
</select>
</body>
</html>
Change History (3)
Owner: |
set to Douglas Hays
|
Summary: |
dijit.form.Select doesn't display option with empty value. →
Select: doesn't display option with empty value.
|
Resolution: |
→ duplicate
|
Status: |
new →
closed
|
Component: |
Dijit →
Dijit - Form
|
Dup of #9973. For now you must add a value.