I'm a jQuery newbie and have rigged Simple Modal to allow me to have more than one modal on a page by doing this in my script:
$('input.basic, a.basic').click(function (e) {
e.preventDefault();
$(this).next('.basicModalContent').modal();
});
here's my HTML:
<a class="basic linkHeading" href="#">Link Heading</a>
<div class="basicModalContent" style="display: none;">
<h1>This Resource Requires Login</h1>
<a href="#" class="simplemodal-close" title="Close">Cancel</a></p>
</div><!--basicModal-->
The issue I'm running into is everything works fine on first click & close. The second click launches the modal, but all the content is gone from inside the box.
see this link for the bug in action: http://blanksky.com/test/ebenefits21/modal.html