appendTo not working with ie window.open
<p>i want to print a <code>div</code> data.<br>
This is my code and work fine in all browser but not working in IE, any solution?</p>

<p>Thanks in advance.</p>

<pre><code>function printer(divid){
    var thePopup = window.open( '', "Customer", "menubar=0,location=0,height=700,width=700" );
    //var printReport =`enter code here`    $('#'+divid).clone().remove('#buttionDiv');
    var printReport =   $('#reportdiv').clone();
    printReport.find('.buttionDiv').remove();
    printReport.appendTo( thePopup.document.body );
    thePopup.print();
}
</code></pre>
