<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>js获取 select标签中的值</title>
<script type="text/javascript">
function test(){
var obj = document.getElementById("mySelect");
var index = obj.selectedIndex;
var text = obj.options[index].text;
alert(text);
}
</script>
</head>
<body>
<select id="mySelect" onchange="test()">
<option value="你好js" >你好js</option>
<option value="你好jq" >你好jq</option>
</select>
</body>
</html>