JSFiddle - React, Tailwind, and code Playground

by rwaldron

JavaScript

$('body').append('<input type="checkbox" checked />')
    
    
$('body').append('<input type="checkbox" />');

$('input[type="checkbox"]:last').trigger('click');