1。select本身就有默认选择的
所以只能说选择了什么,用
sel.options[sel.selectedIndex].text
得到当前所选择的内容2.在以下地方修改成你的操作,可不用result
if(num==arrSel.length){//这里处理最后的数据。
document.all("result").value="选中了("+arrTemp.join(",")+")";return;
}
所以只能说选择了什么,用
sel.options[sel.selectedIndex].text
得到当前所选择的内容2.在以下地方修改成你的操作,可不用result
if(num==arrSel.length){//这里处理最后的数据。
document.all("result").value="选中了("+arrTemp.join(",")+")";return;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货