Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!