title: Get href of loop in Jquery
body: <p>I'm scraping web urls from a website and don't know what I'm doing wrong...Im new to JS.</p>
  
  <p>I want to get the href elements of the a .relative tags. Elements variable is working, but $(this) is not. It will not say anything as an error, but will not put anything into the console.log</p>
  
  <pre><code>elements = $("a .relative").each(function() {
      links = $(this).href;
      console.log(links);
  });
  </code></pre>
  
  <p>Thanks</p>