Published
- 1 min read
javascript select all table rows
The solution for this is noted below
javascript select all table rows
Solution
const rows = document.querySelectorAll('table > tbody > tr')
// OR
const Allrows = document.querySelectorAll('tr')
Try other methods by searching on the site. That is if this doesn’t work