JSFiddle - React, Tailwind, and code Playground
by shryme
HTML
<a class="select-all-current">test</a>
<input type="checkbox" value="a">
<input type="checkbox" value="b">
<input type="checkbox" value="c">
JavaScript
$('a.select-all-current').click(function(e){
e.preventDefault();
alert(e);
$('input:not(:checked)').each(function(index, element){
$(element).click();
});
return false;
});