How can a checkbox be checked using JavaScript: (cpf="45258236978")
<input type="checkbox" style="vertical-align: bottom;" id_pasta="26337043" cpf="45258236978" id_tarefa="122525428">
let check = document.querySelectorAll('input[type=checkbox]');
for (var i = 0; i < check.length; i++) {
for (var ii = 0; ii < check[i].attributes.length; ii++) {
if (check[i].attributes[ii].nodeValue == '45258236978') {
check[i].checked = true;
}
}
}
document.getElementById("yourCheckboxID").checked = true;