JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
    <input type="radio" name="test" value="true" /> 1
    <input type="radio" name="test" value="false" /> 2   
   
<div class="btn-group btn-group-lg" data-toggle="buttons">
    <label class="btn btn-primary" for="test2_t" >
        <input type="radio" name="test2" id="test2_t" value="true"/> 3
    </label>
    <label class="btn btn-primary" for="test2_f" >
        <input type="radio" name="test2" id="test2_f" value="false"/> 4
    </label>
</div>

JavaScript

$('input[type=radio]').change( function() {
   alert("test");   
});