fellwell5 / ModalAlerts

Generates a bootstrap modal which is removed from body after beeing closed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModalAlerts

Generates a bootstrap modal which is removed from body after beeing closed.

Installation

<script src="path/to/ModalAlerts.js"></script>

Examples

ModalA.newModal("Title", "Description", function(){ alert("This is a callback function.") });
ModalA.newModal("Title", "<p>I can use <strong>HTML</strong> here!</p>", function(id){ alert("Modal with ID "+id+" closed.") });

About

Generates a bootstrap modal which is removed from body after beeing closed.

License:MIT License


Languages

Language:JavaScript 100.0%