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