Im attempting to get my head around the HTML DOM and such, basically what i would like to be able to do is to start with something like
<img src="images/test.jpg" alt="" class="setBorder1"/>
and then use javascript to append some elements around the element into something like
<div class="test">
<div class="1"></div>
<div class="2"></div>
<img src="images/test.jpg" alt="" class="setBorder1"/>
</div>
how do i go about doing that?