Adding Cookies to my site. #129655
Replies: 3 comments 1 reply
-
create and set cookie->read it->update it function setCookie(name, value, days) { // Helper function to get a cookie by name // Save checklist state to a cookie // Load checklist state from a cookie // Event listeners to save the state whenever a checkbox is changed // Load the checklist state when the page loads |
Beta Was this translation helpful? Give feedback.
-
I agree with above code! |
Beta Was this translation helpful? Give feedback.
-
I am trying to build a site that has a checklist. I have it completely set up and functioning, but I can't figure out how to add cookies to it so it saves my progress on the checklist. How can I do this?
https://jcguigue.github.io/HadesCompletion/
https://github.com/jcguigue/HadesCompletion
Beta Was this translation helpful? Give feedback.
All reactions