I have some code
<div id="wrapper">
<span>some content</span>
</div>
I want to prepend this with some content
$( "#wrapper" ).prepend( "<img class='img' src=''>" );
however I don't want it to prepend if the img is already there.
I can't do something like checking how long the wrapper div is because it's content comes from a database and is of variable length.