I'm using foundation reveals within my application to send information via AJAX. Everything is working but upon the modal closing I want to change some text. How do you fire a function when a modal closes with Foundation 6? Any help would be great, my current code is as follows:
$("#share_modal").foundation('reveal', 'close', function() {
alert("closed");
});
I'm getting the error
Uncaught ReferenceError: We're sorry, 'reveal' is not an available method for this element.
But the element I'm referring to is the .reveal
<div class="reveal" id="share_modal" data-reveal data-options="closeOnClick:true; closeOnEsc: true;">
<div class="row">