浏览 218 次
|
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
|---|---|
| 作者 | 正文 |
|
时间:2008-04-23
RT:
function removeOption(index)
{
document.getElementById("selUnassignedUsers").options.remove(index);
}
这个代码在IE中可以用,但在FF里就出错,不认remove 那位高手能帮我解决一下,谢谢! 声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
| 返回顶楼 | |
|
时间:2008-04-23
document.getElementById("selUnassignedUsers").options.length=0;
不知道可以不 |
|
| 返回顶楼 | |
|
时间:2008-04-23
这个不行的,长度等于0不就全没了。
我只想删除一个而已。 |
|
| 返回顶楼 | |
|
时间:2008-04-23
你确认
document.getElementById("selUnassignedUsers").remove(index);
不能用吗? |
|
| 返回顶楼 | |
|
时间:2008-04-23
可能用啊!
只是只能在IE里,FF里就不行了。 |
|
| 返回顶楼 | |
|
时间:2008-04-23
document.getElementById("selUnassignedUsers").options.remove(index);
把这句中的"options"去掉再试试。 |
|
| 返回顶楼 | |
|
时间:2008-04-23
可以了,谢谢 shatuo
取掉options就OK了 |
|
| 返回顶楼 | |




