Lightweight jQuery Confirm Dialog Plugin - Confirm Action
| File Size: | 7.11 KB |
|---|---|
| Views Total: | 2651 |
| Last Update: | |
| Publish Date: | |
| Official Website: | Go to website |
| License: | MIT |
Confirm Action is a jQuery plugin that helps you create a pretty confirm dialog popup to replace the default JS confirm() method.
How to use it:
1. Download the plugin and include the jquery.confirm-action.js script after jQuery library.
<script src="//code.jquery.com/jquery.min.js"></script> <script src="jquery.confirm-action.js"></script>
2. Create a basic confirm dialog with custom title & message.
$('.trigger').confirmAction({
title: {
text: 'Confirm Dialog'
},
message: {
text: 'Are you sure?'
}
});
3. Execute an action as you click the confirm button.
$('.trigger').confirmAction({
title: {
text: 'Confirm Dialog'
},
message: {
text: 'Are you sure?'
},
actions: {
confirm: {
text: 'Okey',
callback: function(confirm, cancel) {
// do something
}
}
}
});
Changelog:
2020-09-26
- Add cypress support to action buttons
2015-09-24
- Fixed confirm modal not resetting correctly when closed
2015-09-22
- Fixed IE conditions bug
2015-09-16
- Fixed conditions not displaying
2015-09-16
- Title and Message can be defined as functions
2015-08-29
- Add working checkbox confirms
2015-08-18
- Fixed close issue.
2015-08-14
- Overlay fixes, shorthand call, and fix intercept method
This awesome jQuery plugin is developed by sdelements. For more Advanced Usages, please check the demo page or visit the official website.











