View on GitHub

Jquery.yesno

jQuery confirmation dialog.

Download this project as a .zip file Download this project as a tar.gz file

jQuery.yesno demo

All the links are pointing to www.google.com

No options: Click me
Custom options inside data dash attributes

data-yn-text="Are you sure you are going to do this?"

data-yn-no="No. Go back."

data-yn-yes="I'm sure"

data-yn-title="Warning!"

data-yn-confirm="confirm"

Click me
Submit button of the form
Submitting form using data dash attribute
    // Default settings, can be overriden outside
    $.fn.yesno.defaults = {
        text: "Are you sure you want to do this?", //text in body
        yes: "Yes", //text in confirm button
        no: "No", //text in cancel button
        title: "Are you sure?", //title of modal
        post: false, //if element action=post and type!="submit"
        formid: "" //id of the form to post
    };
    $.fn.yesno.parameters = {
        autoinit: true, // if false, you need to init script manually
        buttonminwidth: "100px" // min width of buttons
    };