Show the image specified in src
<p>I'm trying to find a way to state "if" there is an image in the description of a Wordpress post show the image specified in src instead of from the data-img attribute. Right now I'm using a JS plugin called Superbox ( <a href="http://bvh.delineamultimedia.com/wp-content/themes/bvh/js/portfolio/superbox.js" rel="nofollow">http://bvh.delineamultimedia.com/wp-content/themes/bvh/js/portfolio/superbox.js</a> ) and its not picking up the images showin in my description area of Wordpress because the data-img attribute is null But I'd like it to show the image specified from the src. Instead its showing a Cannot read property 'img' of null in the console currently. </p>

<p>Is there a way in this statement to say if img's data-img attribute is null in .description show it anyways? </p>

<pre><code>if (imgData.description) { superboxcontent.append('&lt;div class="description"&gt;' + imgData.description + '&lt;/div&gt;'); }
</code></pre>
