获取select 的value:
<script language="javascript">
function selectInput(name)
{
alert(name.value);
}
</script>
获取select 的text:
function selectInput(name)
{
alert(name.options[name.selectedIndex].text);
}
</script>
<script language="javascript">
function selectInput(name)
{
alert(name.value);
}
</script>
获取select 的text:
function selectInput(name)
{
alert(name.options[name.selectedIndex].text);
}
</script>