JSFiddle - React, Tailwind, and code Playground
by j08691
HTML
<label for="a1" class="radiostyle">
<Input type = radio Name = 1 Value = 100 Onclick="changecss()" id="a1">
100 bucks</label>
CSS
.radiostyle {
background-color: #999;
}
JavaScript
function changecss() {
var rb = document.getElementsByClassName('radiostyle');
rb[0].style.backgroundColor = 'red';
}