I have this structure
<p class="descr">
<span>something here</span>
<img src="test" />
</p>
<p class="descr">
<span>somthing else here</span>
<img src="test2" />
<img src="test3" />
</p>
so there can be more than one image inside of a <p>
element.
What i need to do is loop through each <p>
and then each <img>
inside of it and add something to the front of it. Any help is appreciated. I tried doing an .each()
but it's not working.