我使用jQuery的插入HTML內容一樣,插入HTML內容的jQuery
$.get("_html/saveme.html", function(data){
$(".saveWin .modalCSS").html(data); //Error here
});
在Firefox它給我的錯誤是,
Node cannot be inserted at the specified point in the hierarchy
在IE中它工作正常。 請建議我,有沒有其他方法可以在課堂內調用類並插入html內容。
在此先感謝
它看起來像你試圖插入HTML到(至少)兩個可能的元素與jQuery中的雙類搜索。 你的HTML看起來像什麼? – dougajmcdonald
一些html和markuyp放置你的容器的位置 – Samich
它看起來像元素沒有找到這樣的選擇器'「.saveWin .modalCSS」'。同樣的問題已經被問及,問題是 - 沒有元素。 http://stackoverflow.com/questions/1119211/node-cannot-be-inserted-at-the-specified-point-in-the-hierarchy-code-3 – Samich