Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

79
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda