I have used jquery to append span element after image tag. But the span element showing inside the image tage. I am moving the caption from one place to another so if i use insertafter it gets dulicated on another place. Please check with the following code and guide me to solve this
$(".wf_captionfirst").appendTo($("#articlespace img"));
Output shows
<img src="" ><span class="wf_captionfirst">adsfasdff</span></img>