jQuery Based Native JavaScript Alert and Confirm Replacement - Dalert
File Size: | 653 KB |
---|---|
Views Total: | 3655 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

Dalert is a simple jQuery and jQuery UI plugin that easily create a customizable alert (or confirm) window as a replacement for the native javascript alert
and confirm
methods.
Basic Usage:
1. Make sure to include the latest version of jQuery library and jQuery UI from CDN on your web page.
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"/> <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
2. Include jQuery dalert plugin after jQuery and jQuery UI.
<script type="text/javascript" src="js/dalert.jquery.js"></script>
3. Create a simple alert window.
<input type="button" class="button" value="DAlert" onclick="dalert.alert('Hello, I am a DAlert!');"/>
4. Create a confirm dialog box.
<input type="button" class="button" value="DAlert-Confirm" onclick="dalert.confirm('Do you want to confirm this DAlert?','yes','no');"/>
Change logs:
2014-11-17
- Added callback support
2014-10-19
- upgraded to version 1.1
This awesome jQuery plugin is developed by andrewdex. For more Advanced Usages, please check the demo page or visit the official website.