jQuery Enhanced Confirm Dialog Plugin - Confirm Action

File Size: 4.27KB
Views Total: 1890
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
jQuery Enhanced Confirm Dialog Plugin - Confirm Action

Confirm Action is a simple but useful jQuery plugin that enhances the default confirm dialog that makes it has callback support and can be configured for each element through data attributes. Ideal for landing page, sales page and any page you want to grab the visitor's attention.

Basic Usage:

1. Include jQuery library and jQuery Confirm Action plugin on the web page

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="src/jquery.confirmAction.js"></script>

2. Create a link to trigger the confirm action. 

<a href="#" class="confirm-action" data-url="/api/some-action.json">Some Action</a>

3. Call the plugin with options

    'type': 'POST',
    'message': 'Are you REALLY REALLY sure you want to do that?'

4. Call back example

    type: 'POST'

    // hide parent tr in table

This awesome jQuery plugin is developed by EE. For more Advanced Usages, please check the demo page or visit the official website.