Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
$(document).ready(function () {
$("#LogOut1").click(function (e) {
// use whatever confirm box you want here
if (!window.confirm("Are you sure you want to logout?")) {
e.preventDefault();
}
});
});



What I have tried:

I tried in ASP.Net MVC. But can't fix it. Please anyone help me out.
Posted
Updated 31-May-18 22:19pm

1 solution

Those dialogs are fixed, you can't change them. If you want a dialog with different buttons you'll need to write your own, or use something like jQueryUI that has a dialog feature, or google for js dialog boxes and you'll find lots of plug-ins you can use to achieve this.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900