As shown below:
<script src="../Js/jquery-1.4.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $("#a_doClick").click(function () { $("#<%=btnTest.ClientID%>").click(); }) }) </script> <a id="a_doClick">Trigger Button's Click event</a><asp:Button runat="server" ID="btnTest" Text="test js trigger event" OnClick="btnTest_Click" /> protected void btnTest_Click(object sender, EventArgs e) { Response.Redirect("//www.VeVB.COM"); }The most important thing is <%=btnTest.ClientID%>
The above article "JS triggers the click event (detailed explanation) of the server control is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.