问题描述
使用经典的 ASP 和 JS。 如何从多选中返回多个值?下面的代码仅返回所选的第一个值。
在我的 .asp 代码中
<select name="month_day" multiple="multiple" size="5" id="month_day_select">
onClick="document.useredit.schedule_details.value=getDetailValue();
在我的 .js 代码中
function getDetailValue() {
var sel_index=document.useredit.month_day.selectedindex;
s_detail=document.useredit_monthday.options[sel_index].value;
return s_detail;
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)