<html>
<head>
<script type="text/javascript">
function EE(obj) {
alert("value:" + obj.value + "name:" + obj.options[obj.selectedIndex].text);
}
</script>
</head>
<body>
<select name="selecttest" οnchange="EE(this)">
<option value="1">第一项</option>
<option value="2">第二项</option>
<option value="3">第三项</option>
</select>
</body>
</html>
select 使用
最新推荐文章于 2021-12-06 10:00:00 发布