JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
</head>
<body>
<input type="radio" name="testGroup" id="test1" />test1<br/>
<input type="radio" name="testGroup" id="test2" />test2<br/>
<input type="radio" name="testGroup" id="test3" />test3</br>
</body>
</html>
JavaScript
$('document').ready(
function(){
$('input:radio').click(
function(){
alert('changed');
}
);
}
);