title: Dynamic jQuery selector
body: <p>I decided to change my question to make it easyer to understand.</p>
  
  <p>I generate form from db using php. It is quiz, it has n(number) of groups of radio buttons, each group represents answers of 1 question in my quiz, name of each group is name1, name2, name3 ... depends on number of questions and answers in database.</p>
  
  <p>I need to select only one group of radio buttons (one question and answers in quiz) and get value of it and then send it through ajax to be compared with right anwer in database.</p>
  
  <p>So i need selector that allows me to do this, question after question to the end of the quiz.</p>
  
  <p>This is my HTML code generated from DB:</p>
  
  <pre><code>&lt;form&gt;
  &lt;fieldset&gt;
  &lt;label for = "otazka1"&gt;Kolik je 1+1 ?&lt;/label&gt;
  &lt;div id="radio"&gt;
  &lt;input type="radio" id="radio1" name="0" value="0" /&gt;&lt;label for="radio1"&gt;4&lt;/label&gt;
  &lt;input type="radio" id="radio2" name="0" value="1" /&gt;&lt;label for="radio2"&gt;2&lt;/label&gt;
  &lt;input type="radio" id="radio3" name="0" value="2" /&gt;&lt;label for="radio3"&gt;3&lt;/label&gt;
  &lt;/div&gt;
  &lt;label for = "otazka2"&gt;Kolik je 2+2 ?&lt;/label&gt;
  &lt;div id="radio"&gt;
  &lt;input type="radio" id="radio1" name="1" value="0" /&gt;&lt;label for="radio1"&gt;2&lt;/label&gt;
  &lt;input type="radio" id="radio2" name="1" value="1" /&gt;&lt;label for="radio2"&gt;3&lt;/label&gt;
  &lt;input type="radio" id="radio3" name="1" value="2" /&gt;&lt;label for="radio3"&gt;5&lt;/label&gt;
  &lt;/div&gt;
  &lt;label for = "otazka3"&gt;Kolik je 3+3 ?&lt;/label&gt;
  &lt;div id="radio"&gt;
  &lt;input type="radio" id="radio1" name="2" value="0" /&gt;&lt;label for="radio1"&gt;5&lt;/label&gt;
  &lt;input type="radio" id="radio2" name="2" value="1" /&gt;&lt;label for="radio2"&gt;10&lt;/label&gt;
  &lt;input type="radio" id="radio3" name="2" value="2" /&gt;&lt;label for="radio3"&gt;9&lt;/label&gt;
  &lt;/div&gt;
  &lt;/fieldset&gt;
  &lt;/form&gt;
  </code></pre>