title: Display saved User Content value(Html5) onclick into div element jquery
body: <p>Hi i got a question how can i display a saved user content value onclick into another div this are my user edit save scripts</p>
  
  <pre><code>&lt;script&gt;
  function saveEdits() {
  
  //get the editable element
  var editElem = document.getElementById("edit");
  
  //get the edited element content
  var userVersion = editElem.innerHTML;
  
  //save the content to local storage
  localStorage.userEdits = userVersion;
  
  //write a confirmation to the user
  document.getElementById("update").innerHTML="Änderungen gespeichert!";
  
  }
  
  function checkEdits() {
  
  //find out if the user has previously saved edits
  if(localStorage.userEdits!=null)
  document.getElementById("edit").innerHTML = localStorage.userEdits;
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>now i want the stored user value be displayed in a div with the id code1 onclick of a button somebody a fix idea?
  Edit:</p>
  
  <p>The Usercontent should be displayed in this div</p>
  
  <pre><code>&lt;div id="code1" class="code"&gt;User Content Value&lt;/div&gt;
  </code></pre>
  
  <p>after a click on this Button</p>
  
  <pre><code>&lt;a href="#" id="codebtn1" class="button" style="display: block;"&gt;&lt;span class="fa fa-code"&gt;&lt;/span&gt; Quellcode anzeigen&lt;/a&gt;
  </code></pre>