tablefilter
This commit is contained in:
15
tablefilter.js
Normal file
15
tablefilter.js
Normal 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";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user