title: Store a string in local storage
body: <p>First of all,i'm sorry for my english. I've created a simple wishlist system for an online store i'm building using jquery. But now i don't know how to store the items in local storage so the user can see them the next time he visit the store. I'm new to jquery and my coding abilities are very poor. Here's what i built:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;style&gt;
  
  body{background:#333;font-family:"Open sans", sans-serif;font-size:100%;text-align:center;font-size:62.5%;}
  button{padding:5px 20px;border-radius:4px;margin:10px auto;border:0;background-color:#fff;font-weight:600;cursor:pointer;color:#c12267;}
  #wish_list{margin:100px auto;min-height:300px;width:100%;background:#fff;}
  #wish_list .wish_list_heading{margin:0;color:#fff;height:30px;background-color:#c12267;overflow:hidden;padding:5px;font-weight:600;}
  #wish_list_item{width:100%;text-align:center;border-spacing:0px;border-collapse:separate;}
  .wishlist-item{position:relative;clear:both;width:100%;margin:2px 0;padding:0;float:left;display:block;height:80px;border-bottom:1px solid #EEE;}
  .w-premove{position:absolute;width:20px;display:block;height:20px;top:30px;left:0;text-align:center;font-weight:900;font-size:140%;line-height:20px;color:red;}
     .w-pimage{top:0;left:25px;width:75px;height:25px;display:block;position:absolute;}
  .w-pimage img{width:100%;}
  .w-pname{top:5px;left:100px;width:calc(100% - 100px);width:-o-calc(100% - 100px);width:-webkit-calc(100% - 100px);width:-moz-calc(100% - 100px);height:40px;padding:0;text-align:left;font-size:140%;font-weight:600;line-height:1em;position:absolute;}
  .w-pname a{text-decoration:none;color:#333;}
  .w-price{top:50px;left:100px;height:20px;width:75px;color:#c12267;font-weight:600;font-size:150%;text-align:center;line-height:20px;display:block;position:absolute;}
  
  &lt;/style&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;button class='wishlist' product_name='Product 1' product_id='product1' product_link="PRODUCT PAGE URL" product_price='90' product_image="IMAGE LINK"&gt;DESEJAR&lt;/button&gt;
  
      &lt;div id='wish_list'&gt;
          &lt;p class="wish_list_heading"&gt;
              &lt;span id='listitem'&gt;0&lt;/span&gt;
              &lt;span id='p_label'&gt;Product&lt;/span&gt;
          &lt;/p&gt;
          &lt;table id='wish_list_item' border='0'&gt;&lt;/table&gt;
      &lt;/div&gt;
  
  &lt;script type='text/javascript'&gt;
  
  var wish_list = new Array();
  jQuery(function(){ 
      jQuery(".wishlist").on("click",function(){
          $data = "";
          $product_id = jQuery(this).attr("product_id");
          $product_name = jQuery(this).attr("product_name");
          $prduct_price = jQuery(this).attr("product_price");
          $product_link = jQuery(this).attr("product_link");
          $product_image = jQuery(this).attr("product_image");
          if(jQuery.inArray($product_id,wish_list)==-1){
              $product_str = "&lt;tr class='wishlist-item' id='list_id_"+$product_id+"'&gt;&lt;td class='w-premove' wpid='"+$product_id+"'&gt;x&lt;/td&gt;&lt;td class='w-pimage'&gt;&lt;img src='"+$product_image+"' /&gt;&lt;/td&gt;&lt;td class='w-pname'&gt;&lt;a href='"+$product_link+"'&gt;"+$product_name+"&lt;/a&gt;&lt;/td&gt;&lt;td class='w-price'&gt;"+$prduct_price+"€&lt;/td&gt;&lt;/tr&gt;";
              jQuery("#wish_list_item").append($product_str); 
              wish_list.push($product_id);
          }
  
          count_items_in_wishlist_update();
      });
      jQuery("#wish_list_item").on("click",".w-premove",function(){
          $product_id = jQuery(this).attr("wpid");
          jQuery("#list_id_"+$product_id).remove();
          wish_list = jQuery.grep( wish_list, function( n, i ) {
              return n != $product_id;
          });
          count_items_in_wishlist_update();
      });
  });
  function count_items_in_wishlist_update(){
      jQuery("#listitem").html(wish_list.length);
      if(wish_list.length&gt;1){
          jQuery("#p_label").html("Products");
          }else{
          jQuery("#p_label").html("Product");
      }  
  }
  
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;`
  </code></pre>
  
  <p>Is it possible to store the strings $product_str in local Storage and present them when the user comes back? How can this be done?</p>