find all id with a specific string
<p>I am trying to get all the <code>href</code> tags of all links on a page, and put them in an array. I have the following code, but when I check the console I get the error <code>Uncaught TypeError: Object  has no method 'attr'</code> I'm not to sure where to go from here. Any ideas?</p>

<p><strong>Code</strong></p>

<pre><code>function videoLinks() {
    var videoLinks = $("a[id^=a_l_]").each(function() {
        var linkArray = jQuery.makeArray(videoLinks);
        console.log(linkArray.attr("href"));
    });
}
</code></pre>
