title: Javascript / jQuery: Why do I keep getting undefined?
body: <p>I have the following html code:</p>
  
  <pre><code>&lt;a class="tabTitle" id="title_boxtab_default" tab-type="default" href="#tabs-3"&gt;Sample&lt;/a&gt;
  </code></pre>
  
  <p>In jQuery I'm trying to get the value of the href attribute with:</p>
  
  <pre><code>$('.tabTitle').last().attr('href');
  </code></pre>
  
  <p>But it keeps telling me it's undefined?</p>
  
  <p>I should mention that the number of links with class"tabTitle" increases. That's why I use .last()</p>