title: Check if img src is empty using jQuery
body: <p>I have the following HTML:</p>
  
  <pre><code> &lt;div class="previewWrapper" id="thumbPreview3"&gt;
    &lt;div class="previewContainer"&gt;
     &lt;img src="" class="photoPreview" data-width="" data-height=""&gt;&lt;span&gt;3&lt;/span&gt;
    &lt;/div&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>And I have the following JQUERY which isn't working.</p>
  
  <pre><code>    if($('div.previewWrapper div.previewContainer img').attr('src') == '') {
        alert('got me');
      }
  </code></pre>
  
  <p>can anyone advise what I'm missing.
  What to get the click event to work when the src is empty.</p>
  
  <p>thx</p>