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

126
Views
¿Cómo modificar días en jQuery datepicker?

Me gustaría modificar días en el mes de febrero en datepicker. Por defecto jQuery datepicker solo permite 28 o 29 días en febrero. En cambio, me gustaría tener 30 días en cada año (sin importar si es un año bisiesto o no). A continuación se muestra el código para el campo selector de fechas que creé.

 $('.date-field').datepicker({ dateFormat: "yymmdd", orientation: "bottom auto", autoclose: true, showOnFocus: false });
 <link href='https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/ui-lightness/jquery-ui.css' rel='stylesheet'> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> <div class="form-group m-1"> <label class="font-weight-bold" for="begin_dt">Begin Date:</label> <input class="form-control date-field" type="text" name="begin_dt" id="begin_dt" value="" placeholder="yyyymmdd"> </div>

No pude encontrar una manera de hacer esto con ninguna de las opciones que se ofrecen como elementos estándar en la biblioteca datepicker. Si alguien sabe una manera de lograr tal escenario por favor hágamelo saber.

about 4 years ago · Santiago Trujillo
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!