title: Check if an element get an attribute
body: <p>How with jQuery I can check if an element get an attribute ?</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;img class="photo_image"&gt;
  </code></pre>
  
  <p>Do not have the <code>src</code> attribute.</p>
  
  <p>I'm using:</p>
  
  <pre><code>if($(v).find('img.photo_image').length) { }
  </code></pre>
  
  <p>But it not check it the <code>&lt;img&gt;</code> has a src attribute or not.
  Thanks.</p>