title: Jquery get id of radio button by testing value
body: <p>I have a read only form that I want to populate the values returned from an ajax query. What I don't understand is the correct syntax to get the id of a specific radio button. I know what value exists in the db, but how to get the id of the radio button, to change the radio button attribute?</p>
  
  <p>For example, in the Radio Button options with the "name"==Criteria1Score", how to I return the id of the input where value ==Good.</p>
  
  <p>Here is an example of the form structure:</p>
  
  <pre><code>&lt;legend&gt;Criteria1&lt;/legend&gt;
  &lt;label class="radio inline"&gt;
      Great
      &lt;input id="Criteria1Score1" class="Score" name="Criteria1Score" type="radio" value="Great"&gt;
  &lt;/label&gt;
  &lt;label class="radio inline"&gt;
      Good
      &lt;input id="Criteria1Score2" class="Score" name="Criteria1Score" type="radio" value="Good"&gt;
  &lt;/label&gt;
  &lt;label class="radio inline"&gt;
      Bad
      &lt;input id="Criteria1Score3" class="Score" name="Criteria1Score" type="radio" value="Bad"&gt;
  &lt;/label&gt;
  </code></pre>