add text to end of all links containing something
<p>I'm trying to add to the end of specific links that contain a certain text.</p>

<p>In my code I found the specific links and changed the beginning of them leaving a variable from the original link. I need to add to the end of that variable. currently at the end of my code I use the append tag but it only adds to link text not the actual link. How can I do this or is there a better way?</p>

<pre><code>$(document).ready(function () {

    $("a[href^='http://www.1shoppingcart.com/']").each(function () {
        this.href = this.href.replace(/^http:\/\/www\.1shoppingcart\.com\/SecureCart\/SecureCart.aspx/,
         "http://www.1shoppingcart.com/SecureCart/Securecart.aspx/onclick = '_gaq.push(['_link', 'http://www.1shoppingcart.com/SecureCart/Securecart.aspx/");
    });
    $('a[href*=1shoppingcart]').append("']); return false;'");
});
</code></pre>
