user handling
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
function tableSearch(){
|
||||
function tableSearch(own_elem, tableID, rowsearch=0) {
|
||||
var table, input, tr, td, row_content;
|
||||
table = document.getElementById("tableRooms");
|
||||
input = document.getElementById("tableRoomSearch").value.toUpperCase();
|
||||
table = document.getElementById(tableID);
|
||||
input = document.getElementById(own_elem).value.toUpperCase();
|
||||
tr = table.getElementsByTagName("tr");
|
||||
|
||||
for (let i = 0; i < tr.length; i++) {
|
||||
td = tr[i].getElementsByTagName("td")[0];
|
||||
td = tr[i].getElementsByTagName("td")[rowsearch];
|
||||
if(td){
|
||||
row_content = td.textContent || td.innerText;
|
||||
if (row_content.toUpperCase().indexOf(input) > -1) {
|
||||
|
||||
Reference in New Issue
Block a user