JSFiddle - React, Tailwind, and code Playground
by indieweb
HTML
<form>
<input type="checkbox" name="bla[]" value="1" />
<input type="checkbox" name="bla[]" value="2" />
</form>
JavaScript
$(document).ready( function () {
$("input[name='bla[]']").each( function () {
var test = $(this).val();
test = test + test;
alert(test);
});
});