JSFiddle - React, Tailwind, and code Playground

by nukeboy212

HTML

<input id = "test2" type = "checkbox" value = "y" checked = "true"> 
<button id = "test">
test
</button>

JavaScript

$("#test").click(function(){
 alert(document.getElementById("test2").checked)
})