菜鸟教程 try_dom_select_multiple 在线代码实例

运行 保存 全屏 右侧展示 实时查看
主题:

 <form>
<select id="mySelect" size="4">
	<option>Apple</option>
	<option>Pear</option>
	<option>Banana</option>
	<option>Orange</option>
</select>
<input type="button" onclick="selectMultiple()" value="Select multiple">
</form>
<p>Before you click on the "Select multiple" button, try to select more than one option (by holding down the Shift or Ctrl key). Then click on the "Select multiple" button and try again.</p>