4 ms·
document.querySelectorAll('input[type="checkbox"]').forEach(function(checkbox) { checkbox.checked = Math.random() >= 0.5; });
by lcnPylGDnU4H9OF 2y ago
document.querySelectorAll('input[type="checkbox"]').forEach(function(checkbox) {
checkbox.checked = Math.random() >= 0.5;
});