Return to Snippet

Revision: 27919
at June 26, 2010 23:18 by phil7085

Initial Code
$(document).ready(function() {

  if ($.cookie('notice') == 'closed') {
  } else {
    // Show or hide on load depending on cookie 
  $('.notice a.close').click(function(e) {
    // Simple close link to hide the notice until cookies are cleared
  $('').click(function(e) {
    // Opener link to show the notice again


Initial URL

Initial Description

Initial Title
Simple use of jQuery cookie plugin to show/hide a notice

Initial Tags
plugin, jquery

Initial Language