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

388
Vistas
.Replace is not replacing the text

I have the following div:

document.querySelector('.ducp-component-cart-item.cart-item.YQ.sm').children[0].children[0].innerHTML

Which has a string value:

Airline Fuel Fee - non-refundable (YQ)

I am trying to remove the "- non-refundable" text with the following but it doesn't change it:

document.querySelector('.ducp-component-cart-item.cart-item.YQ.sm').children[0].children[0].innerHTML.replace('<div class="seats-together"><div class="cart-item-label">Airline Fuel Fee - non-refundable (YQ)</div></div>', '<div class="seats-together"><div class="cart-item-label">Airline Fuel Fee (YQ)</div></div>');

The console does show that the change has happened but when checking the element the change does not reflect.

Screen-shot

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