title: Check if img src is empty using jQuery attr
body: <p>I'm trying the following code:</p>
  
  <pre><code>            if(!$('img.photoPreview', this).attr('src') == '') {
                      alert('empty src...');
              }
  </code></pre>
  
  <p>but it errors in the editor as not being completed correctly.</p>
  
  <p>Can someone advise what is wrong?</p>
  
  <p>Note: I'm trying to check - if not this image src is empty...</p>
  
  <p>thx</p>