title: Storing arrays to localStorage every click of a button
body: <p>I want to save each ID when I click a button to a lolalStorage. </p>
  
  <pre><code> $("li").on("click", "a", function(){
       var test = {"id":  id, "name":name}; 
       localStorage.setItem("test", JSON.stringify(test));
   });
  </code></pre>
  
  <p>But on page reload, I can only get one id. </p>