A Simple and Lightweight Confirm Dialog Plugin | jQuery Confirm Action

Confirm Action jQuery dialog plugin helps you create a fully customizable confirmation dialog. This plugin helps you create a confirmation dialog popup to replace the default JS Confirm () method. 

How to make use of it:

1. Download the plugin and include the jquery.confirm-action.js script after the jQuery library.

<script src="//code.jquery.com/jquery.min.js"></script>
<script src="jquery.confirm-action.js"></script>

2. Create a primary confirm dialog with customized title & message.

$('.trigger').confirmAction({
  title: {
    text: 'Confirm Dialog'
  },
  message: {
    text: 'Are you sure?'
  }
});

3. Execute an action as you click on the confirm button.

$('.trigger').confirmAction({
  title: {
    text: 'Confirm Dialog'
  },
  message: {
    text: 'Are you sure?'
  },
  actions: {
    confirm: {
      text: 'Okey',
      callback: function(confirm, cancel) {
        // do something
      }
    }
  }
});

jquery confirm dialog on button click, jQuery Confirm Action Plugin/Github


See Demo And Download

Official Website(sdelements): Click Here

This superior jQuery/javascript plugin is developed by sdelements. For extra Advanced Usage, please go to the official website.

Share