Adding onclick Attribute to <a> tag using JQuery
<p>I have a link button that I want to change it <code>onclick</code> callback function when clicked:</p>

<p>I am using <code>.attr()</code> to change the <code>onclick</code> event but it simply doesn't work.</p>

<pre><code>$('#' + test).text('Unlike');
$('#' + test).attr("onclick", "return deleteLikeComment('"
        + CommentsWrapper + "','" + activityID + "', '" + test + "');");
</code></pre>

<p>But it simply doesn't work.</p>

<p>I just want to switch the callback method when the link is clicked.</p>
