JSFiddle - React, Tailwind, and code Playground
by smarcaurele
HTML
<label><input name="testing" type="radio" value="hi" />Hi</label>
<label><input name="testing" type="radio" value="ho" />Ho</label>
<div id="debug"></div>
JavaScript
$("body").on("change", ":input[name=testing]", function () {
$("#debug").append($("<div/>").text("in change handler for " + $(this).attr("type") + " " + $(this).attr("value")));
});
$(":input[value=hi]").click();