// Syntax:
let newClone = node.cloneNode([deep])
// Example:
let p = document.getElementById("para1")
let p_prime = p.cloneNode(true)
var original = document.getElementById("question_format");
var clone = original.cloneNode(true);
clone.removeAttribute("id");
clone.setAttribute("id", "question");
document.getElementById("testform").appendChild(clone);
const target = document.querySelector('div');
const clonedTarget = target.cloneNode();
// Syntax:
let newClone = node.cloneNode([deep])
// Example:
let p = document.getElementById("para1")
let p_prime = p.cloneNode(true)
var original = document.getElementById("question_format");
var clone = original.cloneNode(true);
clone.removeAttribute("id");
clone.setAttribute("id", "question");
document.getElementById("testform").appendChild(clone);
const target = document.querySelector('div');
const clonedTarget = target.cloneNode();