title: How to find a link in a page based on its href attribute?
body: <p>I am trying to find the first link of my page which url fit to <code>"AAA"</code> (example). </p>
  
  <p>I first try to get the links with this href: </p>
  
  <pre><code>$('a[href$="AAA"]')
  </code></pre>
  
  <p>Then selec the first one: </p>
  
  <pre><code>$('a[href$="AAA"]')[0]
  </code></pre>
  
  <p>Then target the title attribute of this link</p>
  
  <pre><code>$('a[href$="AAA"]')[0].attr("title");
  </code></pre>
  
  <p>But all of this return me "undefined", at each step. 
  How to do that?</p>
  
  <p>Example anchor:</p>
  
  <pre><code>&lt;a href="contents/medias/images/news/news_test_big.jpg" title="Nouvelle réalisation en ligne 1 FR" target="_blank" class="imageLink"&gt;
  </code></pre>