Home › Forums › JavaScript › Insert code › Reply To: Insert code
June 10, 2016 at 9:47 am
#242721
rkieru
Participant
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: '/' });
});
});