87,843
社区成员




<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
</style>
<script>
function f(obj){
var html = '<tr><td>'+ obj.options[obj.options.selectedIndex].text +'</td></tr>'
document.getElementById('table').innerHTML += html;
}
</script>
</head>
<body>
<select id="sel" onchange='f(this)'>
<option value="1">a</option>
<option value="2">b</option>
<option value="3">c</option>
</select>
<table id="table" border=1></table>
</body>
</html>