I have several checkboxes in the page. Some have hidden=true and the others hidden=false.
I already tried using a selector or jQuery to find checkbox that have the hidden property.
What I want to achieve is I've got number of
- hidden checkbox
- not hidden checkbox
- checked not hidden checkbox
let checkedBoxes = document.querySelectorAll('input[hidden=false]');
let checkBoxes = document.querySelectorAll('input[hidden=false]:checked');
console.log(checkBoxes.length);
console.log(checkedBoxes.length);