Basic Mode


Demo

Basic Modal Dialog

For this demo, SimpleModal is using this "hidden" data for its content. You can also populate the modal dialog with an AJAX response, standard HTML or DOM element(s).

Examples:

$('#basicModalContent').modal(); // jQuery object - this demo

$.modal(document.getElementById('basicModalContent')); // DOM

$.modal('<p><b>HTML</b> elements</p>'); // HTML

$('<div></div>').load('page.html').modal(); // AJAX

More details...