title: Jquery selecting multiple radio-inputs
body: <p>Suppose I have two radio inputs, with name <code>radio-1</code> and <code>radio-2</code>, I am storing their inputs in an object which I will finally use as json to make a post request.</p>
  
  <pre><code>  vals = {}
    $('input:radio[name=radio-1]').click(function() {
    vals['radio-1'] = $('input:radio[name=radio-1]:checked').val();
    });
    $('input:radio[name=radio-2]').click(function() {
    vals['radio-2'] = $('input:radio[name=radio-2]:checked').val();
    });
  </code></pre>
  
  <p>Which generates for example: <code>val = {'radio-1':1,'radio-2':3}</code></p>
  
  <p>Now, say I have multiple radio inputs, <code>radio-3</code>, <code>radio-355</code>. etc... I want to be able put all the values of <code>radio-[0-9]+</code> into my <code>val</code> dictionary without having to write code like above for each of them.</p>
  
  <p>The pseudocode I have in mind is:</p>
  
  <ol>
  <li>Find all radio's with names <code>radio-[0-9]+</code> which have been clicked</li>
  <li>add their values to <code>vals</code> dictionary with name as key</li>
  </ol>