/modal

A lightweight jQuery modal

Primary LanguageJavaScript

modal

A lightweight jQuery modal

Use

  • Add jQuery and modal.js to your html file
  • Configure your anchor tags like this:
<a rel="modal" href="#test">Click</a>
  • Configure your modal content like this:
<div id="test" style="display:none;">...</div>
  • Note that the href attribute in the a tag matches the id of the modal content.