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

157
Views
Html input date when select same date

I have question,

If I have a html element like this:

<input type="date" onchange="func(this)" value="2022-05-16">

It works fine, when you select a different date, if I select 2022-05-16, the func() is not calling, I know seems the onchange only trigger when the date is different(onchange), but if I want to trigger when I select 2022-05-16, same as original date, How I can set it up correctly? Here I do not want to change it to 2022-05-15, then change back to 2022-05-16, I want one click only to tigger my func() here.

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

0

try oninput:

<input type="date" oninput="func(this)" value="2022-05-16">
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!