Menu icon Foundation
Reveal modal with ajax in Foundation 5

Hi,

 

by using ajax, the close button will be replaced by the modal content within the div tag with the id of myModal. How can i prevent this behavior?

 

<div id="myModal" class="reveal-modal" data-reveal>
    <a class="close-reveal-modal" aria-label="Close">&#215;</a>
</div>

modalAJAX

Hi,

 

by using ajax, the close button will be replaced by the modal content within the div tag with the id of myModal. How can i prevent this behavior?

 

<div id="myModal" class="reveal-modal" data-reveal>
    <a class="close-reveal-modal" aria-label="Close">&#215;</a>
</div>