日期:2014-05-16  浏览次数:20388 次

JS获取select的value和text值

<script language="javascript">
function selectInput(name)
{
?? alert(name.value);

}
</script>

获取select 的text:

function selectInput(name)
{
?? alert(name.options[name.selectedIndex].text);
}
</script>