Seven price
asked on
jquery onclick and server side.
Trying use a jquery onclick event and serverside button submission one work without the other. need both to work at the same time.
<asp:Button runat="server" ID="txtSubmit" Text="Next" />
Protected Sub txtSubmit_Click(sender As Object, e As EventArgs) Handles txtSubmit.Click
function work here
response.write("function started")
End sub
$(document).ready(function () {
$('[id$="txtSubmit"]').each(function (index, button) {
var oldClickHandler = button.onClick;
$(button).click(function (clickEvent) {
alert("work");
oldClickHandler.call(button, clickEvent);
});
});
});
<asp:Button runat="server" ID="txtSubmit" Text="Next" />
Protected Sub txtSubmit_Click(sender As Object, e As EventArgs) Handles txtSubmit.Click
function work here
response.write("function started")
End sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the response I resolved everything to javascript and using document.elemenbyid. on the server side passing values to hidden input textbox.
ASKER