title: jQuery loop with an array error
body: <p>i have this snippet. As a result i see an error: Invalid left-hand side in assignment.</p>
  
  <pre><code>var arr = [ "text1", "text2", "text3", "text4" ];
      jQuery.each(arr, function(index, value) {
          this = jQuery("#sc-dialog ."+value).val();
  });
  </code></pre>
  
  <p>Does anyone can point me to how to fix this?
  Thanks.</p>
  
  <p><strong>This is an UPDATE</strong>
  I need that variable 'text' will have the numbers in the loop: text1, text2, text3... i have made it like this:</p>
  
  <pre><code>var arr = [ "1", "2", "3", "4" ];
  jQuery.each(arr, function(index, value) {
          var text + index = jQuery("#sc-dialog .text"+value).val();
  });
  </code></pre>
  
  <p>But i got an error: Unexpected identifier. The problem is here: var text + index</p>