JSFiddle - React, Tailwind, and code Playground
by tymeJV
HTML
<input type="button" value="generate content" id="gen"/>
<input type="checkbox" id="all"/>Check the box below
<div id="append"></div>
JavaScript
var generated = "<input type='checkbox' class='cbGen'/>I'm Dyanmic!";
$("#gen").click(function() {
$("#append").append(generated);
});
$("#all").change(function() {
$(".cbGen").prop("checked", !$(".cbGen").prop("checked"));
});