JSFiddle - React, Tailwind, and code Playground
by Saumil Soni
HTML
<input class="texts" type="checkbox" value="a">A
<input class="texts" type="checkbox" value="b">B
<input class="texts" type="checkbox" value="c">C
JavaScript
$(document).ready(function(){
$(".texts").change(function(){
if(this.checked){
alert($(this).val());
//perform whatever you want to do on clicked checkbox
}
});
});