JSFiddle - React, Tailwind, and code Playground

by Bhushan Kawadkar

HTML

<input type="checkbox" id="chk"> Click on this

JavaScript

$(function(){
  $("#chk").change(fucntion(){
   alert("changed");
  });
  $("#chk").click(fucntion(){
   alert("clicked");
  });
});