select option 禁用
```
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<form>
<select id="pets">
<option>Cat</option>
<option>Dog</option>
<option>Horse</option>
</select>
</form>
<p>单击下面按钮禁用下拉列表的第二项。</p>
<button onclick="disableElement()">禁用选项</button>
<script>
function
1015
0
0
1年前