disabled-option-elements.html   [plain text]


<body>
<p>This tests that disabled option elements shouldn't be selectable and that no elements in disabled optgroups are selectable.</p>
<form name="form">
<select multiple="multiple">
<option>my value 1</option>
<option value="2" disabled>you should not be able to select this</option>
<option>my value 3</option>
<optgroup label="disabled option group" disabled>
     	<option>this should be disabled</option>
		<option>as well as this</option>
<optgroup>
</select>

<select>
<option>my value 1</option>
<option value="2" disabled>you should not be able to select this</option>
<option>my value 3</option>
<optgroup label="disabled option group" disabled>
     	<option>this should be disabled</option>
		<option>as well as this</option>
<optgroup>
</select>
</form>

</body>
</html>