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

108
Vistas
Show Element after after AJAX reload

I have following code:

    K.API.Core.runWhenElementPresent('.product-media', function () {
    var KamH = '<div id="KamHi"><center><div class="KamCo"><span>Test</span></div>';
document.querySelector('.product-media').insertAdjacentHTML('afterbegin', KamH);
    });

K.API.Core.runWhenElementPresent is from my tool I work with and proofs if the class .product-media exists and insert "Test" at given place.

But I can change the product-media picture if I click at another color f.e.. Then an ajax call show the picture with another color (it doesn't replace the class, only the content), but my element is not there anymore.

Can you tell me, if it's possible to still show "Test" after the ajax call, and what do I have to do? jquery is not supported I think. (I'm no coder, so it would be awesome if you can give me the code I need)

Thank you

about 4 years ago · Juan Pablo Isaza
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