JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://cdn.foundation5.zurb.com/foundation.css">
<script src="http://cdn.foundation5.zurb.com/foundation.js"></script>
<div id="modal" class="reveal-modal medium" data-reveal>
Hello World!
</div>
JavaScript
$(document).foundation();
var modal = $("#modal");
modal.foundation('reveal', 'open', {
url: 'http://updates.html5rocks.com'
});
$(document).on('opened.fndtn.reveal', modal, function (e) {
if (e.namespace != 'fndtn.reveal') return;
var links = $("a", modal);
links.click(function () {
var retorno = confirm("agora é com você!");
if (retorno) {
modal.foundation('reveal', 'close');
}
return false;
});
});