JSFiddle - React, Tailwind, and code Playground
by kepo4ka
HTML
<div class ='test'>
<input name="test1" type="checkbox" class="check_class">
Рабочая
</div>
JavaScript
var testJQ = $('.test')[0];
$(".test").on("change", ".check_class", function(e) {
alert('123');
});
var div = document.createElement('div');
div.innerHTML = '<input name="test2" type="checkbox" class="check_class"> Нерабочая';
testJQ.appendChild(div);