<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>获取下拉单选的值</title>
<script src="../js/jquery-1.11.2.min.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
$(document).ready(function() {
$("#s").change(function() {
var val = $("#s").find("option:selected").text();
alert(val);
});
});
</script>
<body>
<tr>
<th>下拉单选</th>
<td>
<select id="s">
<option value="a">1</option>
<option value="b">2</option>
<option value="c">3</option>
<option value="d">4</option>
<option value="e">5</option>
</select></td>
</tr>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>获取下拉单选的值</title>
<script src="../js/jquery-1.11.2.min.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
$(document).ready(function() {
$("#s").change(function() {
var val = $("#s").find("option:selected").text();
alert(val);
});
});
</script>
<body>
<tr>
<th>下拉单选</th>
<td>
<select id="s">
<option value="a">1</option>
<option value="b">2</option>
<option value="c">3</option>
<option value="d">4</option>
<option value="e">5</option>
</select></td>
</tr>
</body>
</html>