title: Styling the controlgroup buttons in Jquery Mobile
body: <p>I have a controlgroup with grouping 3 radio buttons to look like buttons, and what I want to do is to to colour the button on click of each one. Clicking the "Red" will change the colour of the button to "Red"</p>
  
  <p>The code is below</p>
  
  <pre><code>&lt;div data-role="fieldcontain"&gt;
  &lt;fieldset data-role="controlgroup" data-type="horizontal"&gt;
      &lt;input type="radio" name="rd1" id="rd1" value="R" /&gt;
      &lt;label for="rd1"&gt;Red&lt;/label&gt;
      &lt;input type="radio" name="rd2" id="rd2" value="G" /&gt;
      &lt;label for="rd2"&gt;Green&lt;/label&gt;
      &lt;input type="radio" name="rd3" id="rd3" value="B" /&gt;
      &lt;label for="rd3"&gt;Blue&lt;/label&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p></p>
  
  <p>Can somebody please help me on this.</p>