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

293
Visualizações
how to Find the element with the class “values”, and tell us what the element contains in the following page https://theplan.co.uk/support-applicant/

I seem to struggle with answering this question withing the following link : https://theplan.co.uk/support-applicant/

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

0

Use querySelector for getting the tag, and innterText or textContent for getting the right content of the tag (with the current html both return the same).

console.log('innerText', document.querySelector('.values').innerText);

console.log('textContent', document.querySelector('.values').textContent);
<p>We're looking for someone to join our growing Customer Support team! <span class="values">Obsessing over our users</span> is one of the key Hotjar values, so you'll help us continue to deliver outstanding support.</p>

about 4 years ago · Juan Pablo Isaza Relatório

0

Two possibilities that come to mind immediately: querySelector and getElementsByClassName

Like @Totati, I would also prefer the querySelector.

document.querySelector('.values').innerText
// output: "Obsessing over our users"

elem = document.getElementsByClassName('values')[0].innerText
// output: "Obsessing over our users"
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