I'm working with Vodkabears' Remodal in Concrete5, and I'm trying to load a page into the modal by an href. It opens fine the first time, but once closed it won't open again. I've concluded that the issue is with the '.load(href)' but can't figure out a solution. Here's my jquery for when the div is clicked on:
$(".floor-plan").click(function(event){
event.preventDefault();
var href = $(this).children('a').attr('href');
$("[data-remodal-id='modal']").load(href);
$("[data-remodal-target='modal']").click();
});
and here is the html:
<a href="#" data-remodal-target="modal" style="display: block;"></a>
<div class="remodal" data-remodal-id="modal">
</div>