[b]select[/b]
function test(){
var test=document.getElementById("test");
var value=test.options[test.selectedIndex].value;
var text=test.options[test.selectedIndex].text;
alert("----value-----"+value+"---text---"+text);
}
select
<select id="test">
<option value="1">select1</option>
<option value="2">select2</option>
<option value="3">select3</option>
<option value="4">select4</option>
</select>
<input type="button" value="测试" onclick="test()">