title: How to remove the item from the local storage by clicking on div?
body: <p>I am having two bootstrap cards. On selecting one card the card details are going to the array in the local storage. Now I want is if I click another card the previous card details should be removed and the new card details should get into the array.</p>
  
  <pre><code>$("#room_next").click(function (){
  
      localStorage.setItem("object", JSON.stringify(object));
  
  }) 
  
  var storedNames = JSON.parse(localStorage.getItem("object"));
  </code></pre>
  
  <p>Here #roomnext is the next button id and object is the array name as of now the two card details are storing in the array of local storage. I need only one which is selected.</p>