feat: add toggle checkbox functionality

This commit is contained in:
heltonricardo
2023-05-19 09:20:08 -03:00
parent 43b660d4dc
commit 1b5b52f3e3
4 changed files with 24 additions and 0 deletions

9
toggleCheckboxes.js Normal file
View File

@@ -0,0 +1,9 @@
function toggleCheckboxes() {
const conversations = document.querySelectorAll(".conversation-checkbox");
conversations.forEach((checkbox) => {
checkbox.checked = !checkbox.checked;
});
}
toggleCheckboxes();