Untitled

Anonymous
plain_text
03/25/2024 3:51 PM
376 B
15
Indexable
var selectedIds = [];

var checkboxesDiv = document.getElementById("ProdutsCheckList");

var checkboxes = checkboxesDiv.querySelectorAll('input[type="checkbox"]');

checkboxes.forEach(function (checkbox) {
    if (checkbox.checked) {
        selectedIds.push(checkbox.id);
    }
});
Editor is loading...
Leave a Comment