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

145
Views
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 answers
Answer question

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 Report
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!