The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Insert code Reply To: Insert code


Markdown will help you format that in a much more readable fashion. Based on the code you’ve provided, can I assume correctly that you are relying on Foundation to power your modal?

If so, I assume this solution would work.

jQuery(document).ready(function() {
    jQuery('#myModal').reveal({ "closed": function () { 
        $.cookie('hideTheModal', { expires: 30, path: '/' });