title: HTML local storage with button click
body: <p>Trying to store a bunch of text boxes once filled and button clicked to local storage. I've looked around and have only found this which I'm trying except im getting Uncaught ReferenceError: save_data is not defined. Any insight would be appreciated.</p>
  
  <p><code>
  &lt;label for="serveri"&gt; Server: &lt;/label&gt; &lt;input type='text' name="server" id="saveServer"/&gt; &lt;button onclick="save_data()" type="button" value="Save" id="Save"&gt;Save&lt;/button&gt;
  </code></p>
  
  <pre><code>&lt;script&gt;
  function saveData(){ var input = document.getElementById("saveServer"); 
  localStorage.setItem("server", input.value);
  var storedValue = localStorage.getItem("server"); } &lt;/script&gt;
  </code></pre>
  
  <p>If the above doesnt show  my problem heres the full in jsfiddle:<a href="http://jsfiddle.net/hhntg/" rel="nofollow">http://jsfiddle.net/hhntg/</a></p>