Monday, July 15, 2013

Example on how to use dnnConfirm jQuery Plugin

The JS code below will show a dnn confirm dialog upon click on any button with my-Button class.  Pay attention to isButton option on initialization and the isTrigger parameter on button click.

    text: "Confirm Message",
    title: "Confirm",
    isButton: true
//button click handler
$(".my-Button").click(function (e, isTrigger) {

    if (isTrigger) {
        // Your code here

    return false;



  1. What would be a good example of code you might want to run in the isTrigger IF statement?

    1. Depending on what you want to accomplish, for example if its a delete button you can add code to call your delete function.