i have a div that shows on page load that div also have a close button. what i want to do is to never show that div for 7 days when user click on close button. i know this functionality can be achieved using jquery or php cookies but i have no idea how to do this even after getting some info about cookies like here
Javascript set cookie expire time on button click
Code
<div id="content"><button id="close" onclick="setMyCookie();">Close</button></div>