JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<input type="checkbox" name="" value="">one
<input type="checkbox" name="" value="">two
</form>
<a id="select_all" href="#">Выбрать все</a>
JavaScript
$(document).ready(function(){
$("#select_all").click(function() {
$('input[type="checkbox"]').each(function(){
$(this).prop('checked', true);
});
});
});