title: jQuery: Active state: AddClass to a link that contains the document.href as href
body: <p>I'm wondering if its possible to addClass to a link, that has the same href as the document.href?</p>
  
  <p>I tried, but without any luck.</p>
  
  <pre><code>if ($("a").attr("href") == document.location.href) {
      $(this).addClass("active");
  }
  </code></pre>
  
  <p>Isn't this possible??</p>