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

198
Views
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
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!