JSFiddle - React, Tailwind, and code Playground

by jasper

HTML

<input type="radio" name="cols" id="col-1" /><br />
<input type="radio" name="cols" id="col-2" /><br />
<input type="radio" name="cols" id="col-3" />

<br /><br />
<a href="#">Select second radio</a>

JavaScript

var newcol = 'col-2';

$('a').on('click', function () {
    $('input:radio[name="cols"]').prop('checked',true);
    return false;
});