Save state of checkbox on refresh using JavaScript

Author: Julian Hansen, August 2017

This demonstrates how to save the state of a checkbox between page refreshes. Click the checkboxes below and then refresh the page to see how they respond

The solution uses a class save-cb-state to denote which checkboxes must be persisted