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

147
Vistas
jQuery datepicker issue, it pops twice

I need to enable a textbox based on the date change in jQuery Datepicker. So I have written a code like this:

HTML Code:

<div class="col-lg-3">
  <div class="form-group">
    <label for="support_due_date" class="form-label">Due date if any</label>
    <div class="input-group date" data-target-input="support_due_date">
      <input type="text" id="support_due_date" name="support_due_date" class="form-control datetimepicker-input" data-target="#support_due_date" value="<?php echo set_value('support_due_date');?>" />
      <div class="input-group-append" data-target="#support_due_date" data-toggle="datetimepicker">
        <div class="input-group-text"><i class="fa fa-calendar"></i></div>
      </div>
    </div>
    <?php echo form_error('support_due_date'); ?>
  </div>
</div>

$("#support_due_date").datepicker({    
     onClose: function(){      
      $("#justify_urgency").removeAttr("readonly");    
      var todays_date = new Date().toISOString().split('T')[0];
     }
  });

Once I click on datepicker, it gives calendar popped up and if I click on a date then it gives another datepicker without any CSS, just green color dates.

Why this calendar pops up twice?

I am using AdminLTE theme so daterangepicker and calendar are the js provided from AdminLTE theme only.

Image of error

enter image description here

Initial Page looks like this

Once we click on calendar, it gives this weird calendar again

When I select date again, it enables textbox to the right

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

0

Cross verify your code with below points. It may be due to below issues.

  1. Input datepicker must be in type "text".
  2. Make sure you are using only any one datepicker plugin css and js(bootstrap-datepicker/jquery-datepicker) files.
  3. Also make sure the js file order is in correct order.
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