JSFiddle - React, Tailwind, and code Playground
by joplomacedo
HTML
<input type="radio" name="group1" class="new" />
<input type="radio" name="group1" class="new" />
<input type="radio" name="group1" class="new" />
JavaScript
$(".new").mousedown(function(){
if( $(this).is(':checked') ) {
$('body').css('background-color', 'red');
}
else {
$('body').css('background-color', 'blue');
}
});