How do I save background color to localStorage?
<p>I have a to-do list that saves to localStorage with a Priority button that changes the background color to red. That color doesn't save on refresh or adding a new to-do item. Is it possible to save color to localStorage?
<a href="https://jsfiddle.net/kiddigit/hg6w01zn/" rel="nofollow">https://jsfiddle.net/kiddigit/hg6w01zn/</a></p>

<pre><code>function priority() {
  var id = this.getAttribute('value');
  var todos = get_todos();

  localStorage.setItem('todo', JSON.stringify(todos));
  document.getElementById(id).style.background = "red";

  return false;
}
</code></pre>