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

180
Vistas
Detecting form reset event through an event of an input field

I have a web form and I want to resize a text area into one-row height if the input content exceeds more than one line. I have a function to do this already that gets triggered on input, change, events.

JS code

$('.autoresizing').on('input change', function () {

    this.style.height = 'auto';
    this.style.height =  (this.scrollHeight) + 'px';

});

CSS code

#autoresizing {

    display: block;
    overflow: hidden;
    resize: none;

}

I trigger the form reset event on form inputs to clear the input values after successful data save. Is there any event that gets triggered on the form inputs, textareas when the parent form triggers reset?

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