我是Jquery 1.10.2版本。我的要求是在已经存在的xml的特定节点上添加一个xml节点。为此,我正在使用Jquery append()函数。在Chrome,Firefox和IE Edge中运行正常,但在IE11中失败。
在IE11中出现以下错误:
Object doesn't support this property or method
以下是代码
var effectiveDate = document.getElementById("brokerEffDate").value;
var groupSummaryResponse = soapGetGroupSummary.responseXml.cloneNode(true);
var userProvidedEffDateNode = ""+effectiveDate+"";
if (groupSummaryResponse != null){
$(groupSummaryResponse).find('divisions').append(userProvidedEffDateNode);
$(groupSummaryResponse).find('division').each(function(){
if ($(this).children().get(6).innerHTML == ''){
$(this).find('GroupExpDt').text('12/31/9999')
}
});
}
要使其在IE11中工作,我需要进行哪些更改?
Node.appendChild在我的情况下也不起作用。