The script creates two elements and appends them to the body; a button and container. The button toggles the display state of the container, and the cookies handle the state whenever the page is changed.

I'm stupid hhhhhhhhhhh , I'm not fully understand this manner ??I have botton when I click it lead to make the display value of some elements is 'none'I neesd to save it and also for checkbox when is cheched or notcan you make example in html pageTHANK YOU