JSFiddle - React, Tailwind, and code Playground
by Satpal Singh
HTML
<input type="radio" name="radio">
<label for="radio1">1</label>
<input type="radio" name="radio">
<label for="radio2">2</label>
<input type="radio" name="radio">
<label for="radio3">3</label>
<input type="radio" name="radio">
<label for="radio4">4</label>
<input type="text" id="textInput">
JavaScript
$('#textInput').click(function () {
$('input[name="radio"]').prop("checked", false);
});