Get link value in html document with jQuery?
<p>Let's say I have a link in a table like:</p>

<pre><code>    &lt;td class="ms-vb" width="100%"&gt;
&lt;a onfocus="OnLink(this)" href="/Lists/Business%20Divisions/DispForm.aspx?ID=2" onclick="GoToLink(this);return false;" target="_self"&gt;Train&lt;img src="/_layouts/images/blank.gif" class="ms-hidden" alt="" width="1" border="0" height="1"&gt;
&lt;/a&gt;&lt;/td&gt;
</code></pre>

<p>How can I get the value Train with jQuery?</p>

<p>Thanks in advance.</p>

<p>edit:
I currently get the querystring value from every link and push them into an array with the following code:</p>

<pre><code>$("table").each(function(index, value) {
    $(this).addClass("table" + index);
});


var hrefs = new Array();
$('.table449').children().children().each(function(){
var link = ($(this).find('a').attr('href'));
var startIndex = link.indexOf(",'");
var endIndex = link.indexOf("');");
if ( startIndex &gt;= 0 &amp;&amp; endIndex &gt;= 0 ) {
    var linkID = link.substring( startIndex+2, endIndex );
  hrefs.push(linkID);
}
alert(hrefs);
});
</code></pre>

<p>What I want to do is to store the values like Train in another array.</p>
