日志文章

2007年08月30日 17:56:08

js <select的多选

单选:thisf.id_sel.options[thisf.id_sel.selectedIndex].text 多选:     for(var i=0;i<el.options.length;i++)
    {
        if(el.options.selected && el.options.value!="")//
        {
          rolenames += el.options.text + ",";
          roleids += el.options.value + ",";
        }
    }
页面操作:左右形式的添加、删除:

Tags: JAVA  

类别: 其他 |  评论(0) |  浏览(919) |  收藏
发表评论
看不清楚,换一张