my anchor code is like below :
<a id="PaymentLink" name="PaymentLinks" runat="server"
onserverclick="PaymentLink_Click" title="Payment"></a>
form element like below :
<form id="form1" runat="server" onsubmit="alert('alibaba');return false;">
and submit function of jquery is like below :
$(function () {
$('#form1').submit(function (e) {
alert('alert2');
});
});
why after click that anchor we only see alibaba alert …
link button has this manner too…
but when we use regular asp.net buttons , we will see both alerts …
how can we trigger submit function of jquery when that anchor is clicked ?
i need to use server side anchor for some reasons …
thanks in advance
How to capture submit event using jQuery in an ASP.NET application?