JSFiddle - React, Tailwind, and code Playground
JavaScript
var check = $("<input/>", {
type: "checkbox"
});
//check.attr("type","checkbox");
check.attr("checked",true);
$("body").append(check);
var check = $("<input/>", {
type: "checkbox"
});
//check.attr("type","checkbox");
check.attr("checked",true);
$("body").append(check);