craftpip / jquery-confirm

A multipurpose plugin for alert, confirm & dialog, with extended features.
http://craftpip.github.io/jquery-confirm/
MIT License
1.87k stars 511 forks source link
ajax alert callback confirm dialog jquery jquery-plugin modals popup

jquery-confirm

alerts, confirms and dialogs in one.

v3.3.3

Donate

A multipurpose plugin for alert, confirm & dialog, with Super powers.

View Detailed Documentation & Examples

Installation

Download the latest release here and use the files within dist folder.

via CDN:
<link rel="stylesheet" href="https://github.com/craftpip/jquery-confirm/blob/master//cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
<script src="https://github.com/craftpip/jquery-confirm/raw/master//cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js"></script>

via Bower:
$ bower install craftpip/jquery-confirm

via NPM:
$ npm install jquery-confirm

Basic Usage

Showing a confirm box.

$.confirm({
    title: 'What is up?',
    content: 'Here goes a little content',
    type: 'green',
    buttons: {   
        ok: {
            text: "ok!",
            btnClass: 'btn-primary',
            keys: ['enter'],
            action: function(){
                 console.log('the user clicked confirm');
            }
        },
        cancel: function(){
                console.log('the user clicked cancel');
        }
    }
});

Demo and Documentation

See Detailed Docs + Example here.

Authors

Boniface Pereira & Awesome Contributors.

Issues

Please post issues and feature request here Github issues

jconfirm alias

The $.alert() , $.confirm() & $.dialog() are alias of jconfirm();.

Checkout the documentation for further information.

Version changes

(new in 3.3.3)

(new in 3.3.1)

(new in 3.3.0)

(new in 3.2.3)

(new in 3.2.1) *untagged

(new in 3.2.0)

(new in 3.1.1)

(new in 3.1.0)

(new in 3.0.3)

(new in 3.0.1)

(New in 3.0.0) no backwards compatible with v2.

(New in 2.5.1)

(New in 2.5.0)

(New in 2.0.0)

(New in 1.7.9)

(New in 1.7.8)

(New in 1.7.5)

(New in 1.7.3)

(New in 1.7.0)

(New in 1.6.0)

(New in 1.5.3)

(New in 1.5.1)

(New in 1.5.0)

(New in 1.1.3)

(New in 1.1.0)

Copyright and license

Copyright (C) 2014-2017 jquery-confirm

Licensed under the MIT license.