66
rated 0 times
[
72]
[
6]
/ answers: 1 / hits: 17254
/ 12 Years ago, fri, may 11, 2012, 12:00:00
I am using a jquery dialog, when user click ok, the server side onclick event should be fired, if click cancel, nothing happened.
i have to prevent the click function at the beginning by preventDefault() function.
$(document).ready(function () {
$(#<%=submit.ClientID %>).click(function (event) {
event.preventDefault();
$(#confirm).dialog({
buttons: {
OK: function () { $(this).dialog(close);
Here should be the code to trigger the server side click event
},
Cancel: function () { $(this).dialog(close);},
}
});
});
});
I don't know how to trigger a server side onclick event. any ideas? thanks
More From » jquery