I have a list of checkboxes.
If the page is refreshed before the user submits the form, I want the state of the checkboxes (checked or not checked) to be preserved.
Ie: user selects option 1, option 4 and option 5. The page refreshes and option 1, option 4 and option 5 remain checked.
I have looked into serialising then storing a cookie but I just cant wrap my head around it.
Any help would be appreciated.