JSFiddle - React, Tailwind, and code Playground

HTML

<div class='test1'>
<input type='checkbox'>
</div>

CSS

.test1 {
  background: blue;
}

JavaScript

$(document).ready(function($){
     $('input[type=checkbox]').change(function (event) {
    event.stopPropagation();
    alert("Checkbox wurde geklickt");
    }); 
    $('.test1').click(function (event) {
    alert("test1 wurde geklickt");
    });
      });