我有这样的代码,是假设从iframe中获取数组值到父窗口获取数组值
$("#close_nr").bind("click", {page: this}, function (e) {
var chkroomArr = new Array();
$("input[name='name'].checked").each(function() {
chkroomArr.push($(this).val());
chkroomArr.toString();
$("#RoomCategoryID", window.parent.document).val(chkroomArr);
});
$(".yui3-button-close", parent.document).trigger("click");
$(".yui3-panel-content", parent.document).remove();
});
我怎么能做到这一点的代码来工作,因为它不流通父窗口的要求值。我怎样才能得到值显示去了它在父窗口 在此先感谢
检查$(“#RoomCategoryID”,window.parent.document)对象是否在此处..如果不再添加一个父d请参阅 – sree