title: how to change css of radio button when clicked
body: <pre><code>&lt;style type="text/css"&gt;
  .radiostyle {
      background-color: #999;
  }
  &lt;/style&gt;
  
  &lt;label for="a1" class="radiostyle"&gt;
  &lt;Input type = radio Name = 1 Value = 100 Onclick="changecss()" id="a1"&gt;
  100 bucks&lt;/label&gt;
  </code></pre>
  
  <p>What is the code for the function changecss() so that when the radio button is clicked, the radio background changes to some other color, e.g. green. Please help, I've looked for hours online without a solution.</p>