JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" value="val"> Check me.
<div style="clear:both;">
Pick something: <select>
<option value="1">Option 1
<option value="2">Option 2
<option value="3">Option 3
</select>
<div style="clear:both;">
Enter something:
<div style="clear:both;">
<textarea style="width:200px; height: 100px;">
</textarea>
JavaScript
$(document).ready(function() {
$('input[type=checkbox]').click(function() {
alert("val="+$(this).val()+",checked="+$(this).attr('checked'));
});
});