电脑爱好者,提供IT资讯信息及各类编程知识文章介绍,欢迎大家来本站学习电脑知识。 最近更新 | 联系我们 RSS订阅本站最新文章
电脑爱好者
站内搜索: 
当前位置:首页>> Javascript>>javascript之对多选的处理情况报告:

javascript之对多选的处理情况报告

来源:远方网络 | 2005-11-13 14:30:25 | (有2858人读过)

function reportMultiple()

{

var options_string = "";

var the_select = window.document.form_1.list_1;

for (loop=0; loop < the_select.options.length; loop++)

{

if (the_select.options[loop].selected == true)

{

options_string += the_select.options[loop].text + " ";

}

}

alert("you selected: " + options_string);

}

Javascript热门文章排行
网站赞助商
购买此位置

 

关于我们 | 网站地图 | 文档一览 | 友情链接| 联系我们

Copyright © 2003-2024 电脑爱好者 版权所有 备案号:鲁ICP备09059398号