Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

159
Vistas
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 Respuestas
Responde la pregunta

0

try oninput:

<input type="date" oninput="func(this)" value="2022-05-16">
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda