Save a toogle state to Local Storage

Save a toogle state to Local Storage

How do I save the toogle state of a row to Local Storage?


So when opening the page again it will have the same rows higlighted.