gregnb / gregnb/mui-datatables

How I can reset / unchecl all checkboxes of my MUIDataTable

Open
#1,127 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

## I need reset / uncheck all checks
my function

this.resetCheck = this.resetCheck.bind(this);

my Button extern, this button isn't in to Table.

```

```

```
resetCheck(){
let inputs = Array.from(document.getElementsByTagName("INPUT"));
let filter = inputs.filter(cur => cur.type === "checkbox" && cur.checked);
for (let i = 0; i <= filter.length; i++) {
console.log("id", filter[i]);
// return

let checkId = filter[i].getAttribute("id");
console.log("checkId", checkId);// checkId MUIDataTableSelectCell-0
let check1 = (document.getElementById(checkId).checked = false);
console.log(check1); // return false
}
}
```

but return

`false`

any idea?

Can you helpme!!

I need reset/ update all check to uncheck

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.