17
Dec
Learn how to trigger jquery <a> tag click event
You can trigger anchor tag click event using jquery as follows.
<a href="javascript:void(0)" class="anchor_tag" id="users_id">add as a friend</a> on javascript(jquery) $('.anchor_tag').live("click",function(){ var users_id = $(this).attr("id"); //post code })