Possible Duplicate:
Yes or No confirm box using jQuery
I see a lot of examples here about replacements for jQuerys standard confirm dialog but don't understand any of them.
If I want to pop-up a confirm dialog using jQuery or jQueryUI. How can i do it and retrieve what button the user clicked ?
Surely there must be a simple way to set up a confirm dialog like an alert("Something!");
command.
Add two buttons to it and set a call back function on yes
or no
?
Try this one
Fiddle
You can use jQuery UI and do something like this
Html:
Javascript:
Have you tried using the official JQueryUI implementation (not jQuery only) : ?