获取下拉框的值以及显示的文本
/**获取文本内容*/
function gettxt(text){
var txt = text.options[text.selectedIndex].text;
alert("文本为:"+txt);
}
/**获取值内容*/
function getVal(text){
var val = text.value;
alert("值为:"+val);
}
/**获取文本内容*/
function gettxt(text){
var txt = text.options[text.selectedIndex].text;
alert("文本为:"+txt);
}
/**获取值内容*/
function getVal(text){
var val = text.value;
alert("值为:"+val);
}