title: localStorage for Radio Input?
body: <p>I have the following code working to remember my form input on page refresh. I'm not entirely sure how to progress with remembering the input for a radio button. How do adjust the code to do this? </p>
  
  <pre><code>&lt;input type="radio" name="options[Substrate]" id="clear" class="substrate" value="Clear – 125 µm SU320" /&gt;
  &lt;input type="radio" name="options[Substrate]" id="white-50" class="substrate" value="White – 50 µm Melinex 339"/&gt;
  
  
  $(document).ready(function() {
  
  // Save Order on Refresh
      $(window).unload(saveSettings);
      loadSettings();
  
  });
  
  
  function loadSettings() {
      $('#circuitsNum').val(localStorage.setcircuit);
      $('#distanceNum').val(localStorage.setdistance);
      $('#note').val(localStorage.setnote);
      $("#metreSelect").val(localStorage.setmetre);
  }
  
  function saveSettings() {
      localStorage.setcircuit = $('#circuitsNum').val();
      localStorage.setdistance = $('#distanceNum').val();
      localStorage.setnote = $('#note').val();
      localStorage.setmetre = $("#metreSelect").val();
  }
  </code></pre>