I want to dynamically insert a set of Div tags and apply a class to wrap some elements in the DOM. How can I achieve this?
Html
<div class="right-bottom"> <!-- this div tag will be added to wrap the content below -->
<li class="">
<a href="">Diffusion Tensor Imaging</a>
<article class="article-body" data-asynchtml-target="">
<div class="loader"></div>
</article>
</li>
</div>
JavaScript
<script type="text/javascript">
var div = document.createElement('div');
</script>