JSFiddle - React, Tailwind, and code Playground

by Gonzalo Guevara

HTML

<input type="radio" name="cc" value="1">
<input type="radio" name="cc" value="2">
<input type="radio" name="cc" value="3">

JavaScript

$("input[name='cc']").on('change', function(){
	console.log($(this).val());
});