怎样动态的从一个select框将数据移到另一个select框?
x86 2003-01-14 06:48:39 左边是未加入用户列表,右边是已加入用户列表,如何用javascript实现点一个按钮将左边所选的移到右边?
删除可以这样:
var index=document.form1.select1.selectIndex;
document.form1.select1.remove(index);
可是加入不行:
var newOption = document.createElement("OPTION");
newOption.value="aaa";
document.form1.select2.add(newOption, 1);
请问是哪里出问题了呢?我需要支持mozilla 1.x