title: How to assign local storage value to html element?
body: <p>I am passing the info from one page to other page using local storage, now I have to assign this info to html element, How I will do that?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  
  
    &lt;script src="https://code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
    &lt;script&gt;
  
    $( document ).ready(function() {
          var globalarray = [];
          var arrLinks =[];
          arrLinks = JSON.parse(window.localStorage.getItem("globalarray"));
      $(#booking)// How to assign arrLinks here
  
    });
  
    &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;p id="booking"&gt;Not loaded yet.&lt;/p&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>