Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

148
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda