Skip to content

Commit

Permalink
Checks
Browse files Browse the repository at this point in the history
  • Loading branch information
AshWolf committed Oct 30, 2023
1 parent bddb0ea commit bb573bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>
<script>
document.getElementById('select').onclick = function() {
let checkboxes = document.querySelectorAll('input[type="checkbox", id="prepare"]:checked');
let checkboxes = document.querySelectorAll('input[type="checkbox"][id="prepare"]:checked');
document.getElementById("numPrepared").innerHTML = checkboxes.length;
}
</script>
Expand Down

0 comments on commit bb573bf

Please sign in to comment.