Hi, I'm looking for a way to show a dive once a user to notify for or something else, please help me about it, here a same thread, but it is not working on chrome https://forums.digitalpoint.com/threads/show-a-div-once-per-day-using-javascript-with-cookies.1175576/ please suggest me idea
You need to use this plugin: https://github.com/carhartl/jquery-cookie to manage cookies. Read this page for details on how to use the plugin: https://github.com/carhartl/jquery-cookie/blob/master/README.md Create your div set it to display:none; and add some more CSS to position/colour it how you please. Then use jQuery to check if the cookie is undefined or null if it is set the div to display:block; set the cookie to a value of 1 and expires 1 (day).