function CopyToClipboard(containerid) {
var range = document.createRange();
range.selectNode(document.getElementById(containerid));
window.getSelection().removeAllRanges(range);
window.getSelection().addRange(range);
document.execCommand("copy");
alert("Text Copied to clipboard");
}
let content = $('div#first').html();
$('div#second').html(content);