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

172
Vistas
Get then Replace img src of a nested elemetn without id's

I have a HTML structure that we cannot change as it is generated.

I need to look for a specific img src, I need the original src as a val, and also then replace the src with our own custom one.

The structure looks like this:

<span id="edit5_WMFStream">
   <div>
      <img src="...">
   </div>
</span>

I want to look for the span id ending with WMFStream, and I have nothing to id the nested div and then img. Have tried several things but so far can't even get to select the div, letalone the img then src.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

maybe you can use querySelector to ref the image

document.querySelector("#edit5_WMFStream img")
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