get values from links in html document with JavaScript and store them in an array
<p>I have a table with links in the html document and they looks something like (first link is just javascript:):</p>

<pre><code>javascript:

javascript:SelectField('{a guid}','2');return false;

javascript:SelectField('{a guid}','23');return false;

javascript:SelectField('{a guid}','1');return false;

javascript:SelectField('{a guid}','14');return false;
</code></pre>

<p>I want the number after the guid.</p>

<p>My current code is:</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 linkID = link.substring( link.indexOf(",'")+2, link.indexOf("');") )
hrefs.push(linkID);
alert(hrefs);
});
</code></pre>

<p>I get the values I want in an array but the first place is "j" (without ""). I guess it is because of +2 after the indexOf but how do I get rid of the j? I only want the numbers in the array.</p>

<p>Thanks in advance.</p>

<p>Edit: or is there a better way to get the ID's?
edit2: the alert shows j,1,2,4,5,7,8,10 and so on</p>
