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

171
Views
jquery .on('change' is not triggering while other events do

I dinamically add an input box in a table cell. The HTML I add is:

cell.html('<input type="text" id="finder" data-type="cittaNascita" value="'+value+'">');

The input is dinamically added so I then added:

$(document).on('change','#finder',function(){
    console.log('cerco altra citta');
});

but I never see the message in console. This code works fine anyway:

$(document).on('keyup','#finder',function(){
    console.log('cerco altra citta');
});

so I expect it to be something related to .on('change', but even looking on SO my code should be working fine. What do I miss here?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can use .on('input' event instead to fire the change event without actually leaving the input, it fires right after the value has changed.

about 4 years ago · Juan Pablo Isaza Report
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!