JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<label>Select <input type="checkbox" id="trig"></label>

JavaScript

$(function(){

var $trig = $('#trig');
var store = function(e) {
    console.log(e.type);
}
$trig.on('change', store).on('click', store);
});