jQuery add attr to end of string
<p>I want to add the attribute <code>href</code> to the end of an url:</p>

<p>This should be pretty easy.  This is what I have, but I think something's wrong.</p>

<pre><code>$('.delete-code').click(function() {
    var row = $(this).parent().parent();
    $.ajax({
        type: "POST",
        url: "http://website.com/admin/home/deleteCode/"+$(this).attr('href'),
        data: $(this).attr('href'),
        success: function() {
            $(row).hide();
        }
    });
    return false;
});
</code></pre>

<p><em>This works when I hard-code in the href</em></p>
