I have a nodelist of checkboxes. How can I set them all to be checked? The following forEach does not work as the property checked does not exist on type element
let checkboxes = document.querySelectorAll('[id^="chkAddProposalProduct_"]');
checkboxes.forEach(c => { c.checked = true});
HTML
<input type="checkbox" id="chkAddProposalProduct_{{product.productId}}">