The following does not work. Have a server submit button and trying to invoke the click action of the button on client side to so some validations. However, the function does not get invoked!
<head runat="server">
<script type="text/javascript" src="scripts/jQuery.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button runat="server" Text="Next" ID="btnNext" />
</div>
</form>
</body>
$(document).ready(function() {
$('#<%= btnNext.ClientID %>').click(function() {
alert("Success");
});
});
Any help is appreciated.