Untitled

mail@pastecode.io avatar
unknown
plain_text
24 days ago
282 B
1
Indexable
Never
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);
    }
});
Leave a Comment