问题出在
var a = document.test(iframe 名).document.form2.select.value
此时a并不是一个数组,你需要遍历select对选中项进行处理

解决方案 »

  1.   

    以前好像是这么实现的。具体忘了:
    str = '';
    for(i=0;i<document.test(iframe 名).document.form2.select.length;i++)
       if(document.test(iframe 名).document.form2.select[i].selected)
          str = str + document.test(iframe 名).document.form2.select[i].value;
      

  2.   

    var a = document.test(iframe 名).document.form2.select.value这句话只是传递你选择的值 ,当然只有一个值了,如果要得到两个值,就像唠叨说的一样要遍历select中的各选项了