JSFiddle - React, Tailwind, and code Playground

by leongersen

HTML

<input type="checkbox">

JavaScript

var input = document.querySelectorAll('input')[0];

input.indeterminate = true;

$(input).on('change', function(){
    alert('change');
});