jQuery Confirm
A simple script that opens confirmation popup before triggering action on button click. (e.g. on deleting)
List of the options:
text
: Text to display in the dialogtitle
: Title of the dialog (can be empty, the dialog will not have a header then)confirm
: Handler executed when the user confirmscancel
: Handler executed when the user cancelsconfirmButton
: Label of the confirm buttoncancelButton
: Label of the cancel buttonpost
: If false (default) and no confirm handler is set, redirects the user to the URL of the button/link with a GET request. If true, redirects with a POST request (like a form submission).submitForm
: If false (default) it has no effect. If true, it submit the form target element.confirmButtonClass
: HTML class for the confirmation button, defaults tobtn-primary
.cancelButtonClass
: HTML class for the cancel button, defaults tobtn-default
.dialogClass
: HTML class for the dialog, defaults tomodal-dialog
.