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

80
Visualizações
Change the style uniquely if files are jpg

hello in my html page I have jpg and png files all this files have a class : ".background" in this class I defined size and other attributes. I want change the attributes uniquely on jpeg files. In JS can I find all jpg files of my page and change the style of this class ? Thank you for your help

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

0

From my point of view you could do the following:

  • First select all the that have a src that contains ".jpg" at the end of the name (with regex or similar) and save them in a list or in a variable
  • Then apply the necessary changes with myVariable.style.X

However without further details it's difficult to help you more. It would be much easier to help you if you could provide us more details on the code you have, could you edit your post please?

Have a nice day!

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