x
 
<!DOCTYPE html>
<html>
<body>
<select size="2">
  <option id="myOption" label="Mercedes">奔驰</option>
  <option label="Volvo">沃尔沃</option>
</select>
<p>单击该按钮可返回 Mercedes 选项的 label 属性的值。</p>
<button onclick="myFunction()">试一试</button>
<p id="demo"></p>
<script>
function myFunction() {
  var x = document.getElementById("myOption").label;
  document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>