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

197
Vistas
How to imitate onchange on textarea

I have a textarea with text and my button submit not working while I didn't put smth in textarea, I have text in textarea, but I didn't press smth in this textarea and I want to imitate onchange

let el = document.getElementsByTagName('textarea');

how to do it? that what i did, but it's not working

const event = new MouseEvent('change', {
  bubbles: true,
  cancelable: true,
});
debugger
el.dispatchEvent(event);

I have a mistake on dispatchEvent - Property 'dispatchEvent' does not exist on type 'HTMLCollectionOf'. And I think this is wrong way

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