Create dialogs in a nutshell
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<link href="material/css/ripples.min.css" rel="stylesheet">
<link href="material/css/material-wfont.min.css" rel="stylesheet"><script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="material/js/ripples.min.js"></script>
<script src="material/js/material.min.js"></script>
<script src="js/modal.js"></script>var modal = new Modal({
title: "A modal example!",
body: document.createTextNode("This is an example of an HTML DOM element added to the body of the modal."),
success: "success button text",
process: function () {
//some ajax functions
modal.close();
}
});
$('#my-button').click(function() {
modal.show();
});