bootstrap-dialog is a useful little plugin

July 14, 2014
programming design

bootstrap-dialog is a useful little plugin

A dead-easy popup dialog to work with bootstrap this will replace the javascript ‘alert’ with something more modern and is just as easy to call. A nice way to report your .ajax call results.

My code demo is here.

<!DOCTYPE html>
  <link href="//" 
     rel="stylesheet" type="text/css" />
  <script src="//">
  <script src="//">

  <link href="css/bootstrap-dialog.min.css" rel="stylesheet" type="text/css" />
  <script src="js/bootstrap-dialog.min.js"></script>
  <meta charset="utf-8" />
  <title>Bootstrap Dialog Test</title>

  <div style="padding:20px;">

    <p><button type="button" id="btnold">Old Dialog</button></p>

    <p><button type="button" id="btnnew">New Dialog</button></p>


 $(document).ready(function() {

         alert("This is the Old Dialog.");

            title: 'Your New Dialog',
            message: 'This is the new dialog.',
            buttons: [{
                label: 'Close',
                action: function(dialogItself){


This is the old dialog:

The new style dialog slides gracefully down into place:


Files and more examples from