We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 621aa05 commit f56df6cCopy full SHA for f56df6c
src/scripts.js
@@ -67,9 +67,17 @@ function filterRows() {
67
68
// Loop through all table rows and hide those who don't match the search
69
for (i = 0; i < tr.length; i++) {
70
- td = tr[i].getElementsByTagName("td")[0];
71
- if (td) {
72
- if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
+ title = tr[i].getElementsByTagName("td")[0];
+ section = tr[i].getElementsByTagName("td")[4];
+ if (title) {
73
+ if (title.innerHTML.toUpperCase().indexOf(filter) > -1) {
74
+ tr[i].style.display = "";
75
+ } else {
76
+ tr[i].style.display = "none";
77
+ }
78
79
+ if (section) {
80
+ if (section.innerHTML.toUpperCase().indexOf(filter) > -1) {
81
tr[i].style.display = "";
82
} else {
83
tr[i].style.display = "none";
0 commit comments