Skip to content

sdelements/jquery-confirm-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Confirm Action

screenshot

Getting Started

<script type="text/javascript" src="./jquery.confirm-action.js"></script>
$('.my-button').confirmAction({
    title: {
        text: 'Whoa!'
    },
    message: {
        text: 'You are about to do a bad thing, are you sure?'
    }
});

Advanced Usage

$('.my-button').confirmAction({
    title: {
        html: [
            '<i class="fa fa-warning"></i><br />',
            'Stop right there!'
        ],
        style: 'danger'
    },
    message: {
        html: 'You are about <strong>delete the internet</strong>, are you sure?'
    },
    actions: {
        confirm: {
            text: 'Go Ahead',
            callback: function(confirm, cancel) {
                confirm();
            }
        }
    }
});

About

Click confirmation for the masses <3

Resources

License

Stars

Watchers

Forks

Packages

No packages published