こんにちは、次のようにして JQuery オブジェクトを別のオブジェクトに挿入しようとしています。
var htmlCode = $("<div id='"+data.layoutDescriptions[i].id+"'></div");
if(data.contentRef == "RecursiveContactSubForm"){
if(htmlArray[2]){
alert("in here");
htmlCode.append(htmlArray[2]);
}
else{
alert("in here2");
var tmp = htmlCode;
htmlCode.append(tmp);
}
}
これが機能しない理由がわかりません。
何か案は?
ありがとう。