JSFiddle - React, Tailwind, and code Playground
by ms0111
HTML
<a href="#" id="ho">Click Me</a>
<div class="hi"></div>
JavaScript
$('#ho').on('click', function(e){
e.preventDefault();
$('.hi').append('<input type="checkbox" id="isAgeSelected"/>');
})
$(".hi input[type=checkbox]").on('click',function () {
alert('is checked')
})