Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

137
Visualizações
How can I prevent a search & filter script from using image urls in the result?

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.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If you look at the textContent of the table cell, you'll see it includes the URL.

enter image description here

Your solution is just to be more specific about you want. Maybe

rows[0].cells[2].getElementsByTagName("a")[0].textContent

enter image description here

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda