title: Jquery - Change radio button text color
body: <p>I have radio buttons as follows:</p>
  
  <pre><code>&lt;input type='radio' name='ans' value='0'&gt; Dog
  &lt;input type='radio' name='ans' value='1'&gt; Horse
  &lt;input type='radio' name='ans' value='2'&gt; Cat
  &lt;input type='radio' name='ans' value='3'&gt; Camel
  
  &lt;input type="button" value="Change Color" onclick="changeColor()" /&gt;
  </code></pre>
  
  <p>When i click the button, i want a certain radio button text to turn Green in color. <br>
  For eg. if the correct answer(value='2') is Cat, then Cat text should be turned green.</p>
  
  <p>Here's an incomplete function - i guess i am missing the part that selects the radio button based on value:</p>
  
  <pre><code>var changeColor = function()
      {
          $("input[name=ans]").css('color', 'green');
      }
  </code></pre>