JSFiddle - React, Tailwind, and code Playground

by Chris Rebert

HTML

<input type="checkbox" id="foo">
<input type="radio" id="bar">

JavaScript

$('#foo,#bar').on('click change', function (e) {
    console.log(e.type);
});