How To Get Clone Element Of Queryselectorall And Append To Another Div
How to get clone elements of more than one specific classes list and append to another tag. var elements = document.getElementById('main_iframe').contentDocument.querySelectorAll('
Solution 1:
Assuming there are no same originl policy constrains, you can clone the node
var elements = document.getElementById('main_iframe').contentDocument.querySelectorAll(".optdel, .optbold");
var editsummary = document.getElementById("opteditsum");
for (var i = 0, im = elements.length; im > i; i++) {
editsummary.appendChild(elements[i].cloneNode(true));
}
Post a Comment for "How To Get Clone Element Of Queryselectorall And Append To Another Div"