I am having an asp.net sever control as below
<asp:HyperLink Visible='<%# (GetAnswer(Eval("AnsQID"))) != 1 %>' ID="HyperLink1"
runat="server" NavigateUrl="#" ToolTip='Like this answer'
onclick="javascript:(likeThis(this))">Like
</asp:HyperLink>
I am handling this onclick event on the client side by passing to the function on the client side as shown. Here is the "likeThis" function on the client side
function likeThis(e) {
e.preventDefault(); // how do I get the event arguments as e ?
var controlBar = ($(e).parents('div[class="group"]').children('p[id="controlBar"]'));
}
I want the click event to be preventing the default behavior. So can you advise me on how to do that . Thanks