1
我有一个弹出窗口,它填充了在父窗口中找到的选择列表。通过弹出窗口填充父窗口中的选择框
这里是我从弹出填充选择列表中的JavaScript代码:
function add_2_list(element) {
var destinationList =window.opener.document.getElementById('selectlist_id');
var select_index = destinationList.length;
destinationList.options[select_index] = new Option(element, element, true)
}
此代码的伟大工程在Mozilla Firefox,但似乎并没有在Internet Explorer 9,工作
我将不胜感激它如果有人可以帮助我想出办法如何与IE修复该问题9.
感谢
var option = new Option(element,element,true); options.add(option,select_index); – Sanath
感谢您的建议 – Kim