I have a very simple html code here. I want to store the whole div test_area and then create it when I need it. For now, let's assume that I want to duplicate it and put the clone below the existing element, how can I do that? Here's what I tried to do which didn't work (specifically the innerHtml line):
<body>
<div class="test_area" id="test_area">
<h1>
This is a test
</h1>
</div>
</body>
<script>
let current_element = document.getElementById('test_area')
let clone = document.createElement('div')
clone.innerHTML = current_element
document.body.appendChild(clone)
</script>
In the end I want the final html version to look like this: