Read on how to do it in this link: https://www.w3schools.com/howto/howto_js_filter_table.asp
Try it yourself here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_filter_table
Tip: Remove toUpperCase() if you want to perform a case-sensitive search.
Tip: Change tr[i].getElementsByTagName('td') to  if you want to search for "Country" (index 1) instead of "Name" (index 0).
Tip: Also check out Filter List.