JSFiddle - React, Tailwind, and code Playground

HTML

<div id="foo">
    <input type="radio" name="one" value="bar" />
    <input type="radio" name="one" value="baz" checked="checked" />
</div>

JavaScript

var radios = $('#foo input');
var checked = radios.index(':checked')
alert(checked);