JSFiddle - React, Tailwind, and code Playground

by von

HTML

NWF$('document').ready(function(){   NWF$('#'+SelectAll).click(function(){
 var c = [];  NWF$('#' + SelectAll+ ' :checkbox:checked').each(function(i) {   c[i] = NWF$(this).val();   console.log(c[i]); if(c[i] == "Select All"){NWF$('.multiselect input:checkbox').not(this).prop('checked', this.checked);
} });});
});