Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

182
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda