A lightweight jQuery modal
- 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 thea
tag matches theid
of the modal content.