jQuery plugin that displays confirmation box for an action link or when
submitting a form
Requires jQuery and bootbox. Works best with bootstrap.
Basic usage is:
$('.your-class').confirmize({
title: 'Title',
message: 'Proceed?'
});
The settings object and all params are optional.
All parameters can be specified by using (in this order):
data-title="your title"
$(element).data('title', 'your title')
Default: '<i class="fa fa-exclamation-triangle text-danger"></i> Confirm Action'
Can be also specified in the title attribute on the element.
Default: 'Are you sure?'
This parameter must be specified unless you're using a form.
Can be also specified in the href attribute on the element.