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

212
Vistas
Chrome extension and HTML5 datetime-local input

I was creating a chrome extension and I added a date time picker. Whenever I choose date and time it should show the chosen value in the input html field. However, it is not showing in my case.

                                <input type="datetime-local" name="" id="date-el">

I use the above html code to add date time picker on my chrome extension popup.html. I also have a background service worker for database. After, doing some random test, I found that the date time picker works normally when I remove the background service worker.

Background.js service worker runs on the background all the time. Does it block the date inputs from updating? Is there a relation between chrome extension service worker and html5 date time input?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Could you try with this code, maybe you need to put it a form

<form>
  <h2> Try Clicking Submit</h2>
  <hr />
  
  <label for="via-html">Set with HTML value attribute (Works fine!)</label>
  <br />
  <input id="via-html" type="datetime-local" value="1980-01-01T01:01:01.001"/>
  
  <br />
  <br />
  
  <label for="via-js">Set with JavaScript (Fails Validation!)</label>
  <br />
  <input type="datetime-local" id="via-js"/>
  <hr />
  <input type="submit" />
</form>

enter image description here

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