JSFiddle - React, Tailwind, and code Playground

HTML

<input id="checkbox1" type="checkbox" />
<input id="checkbox2" type="checkbox" />
<script>
 jQuery( document ).ready( function ( $ ) {
 $( "#checkbox1" ).on( "change", function( event, ui ){
    if(this.checked){alert("check it out!");}

  });
  $( "#checkbox2" ).on( "change", function( event, ui ){
    if(this.checked){alert("check me out too!");}
});
    });

    
</script>