I have a table on one of my webpages that can be filtered using a search bar.
The script works pretty much as intended but for one problem.
Each row of the table contains an image of a flag. All of these images were uploaded to my site in 2018. This means if a user searches for 2018 the table remains unfiltered because the script is using the 2018 from the image src url in the results.
Is it possible for me to have the script ignore those image urls?
If you search for 2018 in the search bar on WEBSITE REMOVED you'll see my issue. Search for others years and you'll see that it works fine.
The script I'm using is:
SCRIPT REMOVED
I would appreciate any help on this.
If you look at the textContent of the table cell, you'll see it includes the URL.
Your solution is just to be more specific about you want. Maybe
rows[0].cells[2].getElementsByTagName("a")[0].textContent