JSFiddle - React, Tailwind, and code Playground
by robschmuecker
HTML
<div class="btn-group-horizontal" data-toggle="buttons" id="Group">
<label class="btn btn-sm btn-info btnSelect active">
<input type="radio" name="options" id="Option 1" autocomplete="off" checked>Option 1</label>
<label class="btn btn-sm btn-info btnSelect">
<input type="radio" name="options" id="Option 2" autocomplete="off">Option 2</label>
</div>
JavaScript
$(document).ready(function () {
alert($('.active input').prop('id'))
});