tablefilter

This commit is contained in:
troy
2021-10-16 13:32:50 +02:00
parent d0576188e0
commit 9297e8d6bc
4 changed files with 38 additions and 1 deletions

15
tablefilter.js Normal file
View File

@@ -0,0 +1,15 @@
function myFilter() {
var input, filter, ul, li, a, i, txtValue;
input = document.getElementById("suchstr");
filter = input.value.toUpperCase();
li = jQuery("#suchlist .row");
for (i = 0; i < li.length; i++) {
txtValue = li[i].textContent || li[i].innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
li[i].style.display = "";
} else {
li[i].style.display = "none";
}
}
}