<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<script>
function d()
{
var dc=document.getElementById("dpdCuisineType");
alert(dc.options[dc.selectedIndex].text)
}
</script>
<body>
<table>
<tr>
<td>
<select name="dpdCuisineType" id="dpdCuisineType" onchange="d()">
<option selected="selected" value="0">取0这个</option>
<option value="1">取1这个</option>
<option value="2">取2这个</option>
<option value="3">取3这个</option>
<option value="4">取4这个</option>
</select>
</td>
</tr>
</table>
</body>
</html>
评论前必须登录!
注册