Like. var:variable to load from a variable searchTable() is setting style.display = "block" to the rows that match the text from the input and the hidden by seacrhTableDevice() rows were also displayed. Heres how you can put them to work with either