title: Populate a set of text areas with jQuery eq() from localStorage
body: <p>I have a set of text areas and have set them to save in localStorage. I've been trying to use the following code to retrieve those values and put them back into the text areas when the browser reloads. </p>
  
  <p>If I log <code>('textarea').eq(i).val()</code> it correctly returns an empty string which is the value of the text area before it's populated. I therefore can't figure out why the console tells me that the "Left side of assignment is not a reference." and the code fails.</p>
  
  <pre><code>for (var i = 0; i &lt; $('.box').length; i++) {    
      $('textarea').eq(i).val() = localStorage.getItem(document.title + i);  
  };
  </code></pre>
  
  <p>I can do this with vanilla JavaScript, but am just curious why the jQuery method I'm applying here doesn't work.</p>
  
  <p>TIA.</p>