function search() {
  // Declare variables 
  var input, filter, nodes, i, targetC, txtValue;
  input = document.getElementById("searchText");
  filter = input.value.toUpperCase();
  nodes = document.getElementsByClassName('target');
  targetC = document.getElementsByClassName('targetCard');
  // Loop through all table rows, and hide those who don't match the search query
   for (i = 0; i < nodes.length; i++) {
    if (nodes[i].innerText.toLowerCase().includes(filter)) {
      targetC[i].style.display = "block";
    } else {
      targetC[i].style.display = "none";
    }
  }
}