<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" onchange="EE(this)">
<option value="1">第一项</option>
<option value="2">第二项</option>
<option value="3">第三项</option>
</html>
时间: 2024-10-10 03:57:43