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

216
Views
Flatpickr deshabilita dinámicamente el día

Necesito deshabilitar la selección de días en flatpickr.
De la documentación, veo que para hacer esto, debe pasar los días a través del parámetro " deshabilitar ". Obtengo los días de una llamada API, con respuesta:

 "2021-01-21","2021-01-16"

cuando intento con

 var req = new XMLHttpRequest(); req.onreadystatechange = function() { if (req.readyState === 4) { var response = req.responseText; console.log(response); flatpickr("#myID", { disable: [response], dateFormat: "Ymd", } ); } }; req.open('GET', 'https://www.peradev.it/api/getGiorni.php?id=1'); req.send(null);

solo funciona el primer día, el segundo no está deshabilitado. ¿Qué estoy mal?

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!