title: Read multiple jQuery.val() into array
body: <p>I have some code that looks like this that works just fine:</p>
  
  <pre><code>var info = [];
  for (i = 0; i &lt; 10; i++)
  {
       info[i] = $('#info_' + i).val();
  }
  </code></pre>
  
  <p>The problem is that this pattern is very common in my application with some minor variations.
  What i would like to do is to make this into a oneliner something like this where info becomes an array:</p>
  
  <pre><code>var info = $('[id^="info_"]').each().val();
  </code></pre>