Code <div id='basicModal'><h2>Basic Modal Dialog</h2> <p>A basic modal dialog with minimal styling and without any additional settings. There are a few CSS attributes set internally by SimpleModal, however, SimpleModal relies mostly on external CSS for the look and feel.</p> <input type='button' name='basic' value='Demo'class='basic'/> or <a href='#'class='basic'>Demo</a> </div> <div id="basicModalContent" style='display:none'> <h1>Basic Modal Dialog</h1>
<p>For this demo, SimpleModal isusingthis"hidden" data for its content. You can also populate the modal dialog with standard HTML or with DOM element(s).</p> <p>Examples:</p> <p><code>$('#basicModalContent').modal(); // jQuery object; this demo</code></p> <p><code>$.modal(document.getElementById('basicModalContent')); // DOM</code></p> <p><code>$.modal('<p><b>HTML</b> elements</p>'); // HTML</code></p> <p><a href='http://www.ericmmartin.com/projects/simplemodal'>More details</a></p> </div>