JSFiddle - React, Tailwind, and code Playground
HTML
<body>
90: <input type="radio" name="group1" value="90" /><br>
110: <input type="radio" name="group1" value="110" /><br>
130: <input type="radio" name="group1" value="130" /><br>
</body>
CSS
.active:before {
content: "->"
}
.active{
width: 40px;
}
JavaScript
$(function(){
$("input[type=radio][name=group1]").click(function(){
// Get the value
var value = $(this).val();
// Reset active state class
$("input[type=radio][name=group1]").removeClass("active");
// Assign the new active class to the clicked element
$(this).addClass("active");
});
});