How to display my datepicker down

0

I put a datepicker on my page inside an imput, it works perfectly, but it displays up, how can I change that property.

this is the javascript code

 <script>
  $(document).ready(function() {
  $( function() {
  $( "#datepicker" ).datepicker({  minDate: 0, maxDate: "+1W", dateFormat: 
  'yy-mm-dd'});
   });
   });
   </script>

and so I put it in html

      div class="offset-lg-3 col-lg-6 row">
 <div class="col-lg-6 tlBack text-center" style="border-style: solid double; 
   color: white;">
    <span class="label white text-center">date</span>
  </div>
<input type="text" name="datepicker" value="" class="col-lg-6 text-center" 
 id="datepicker" required disabled>
</div>
    
asked by user80520 08.05.2018 в 20:34
source

1 answer

0

Try with orientation like this:

<script>
  $(document).ready(function() {
  $( function() {
  $( "#datepicker" ).datepicker({  minDate: 0, maxDate: "+1W", dateFormat: 
  'yy-mm-dd', orientation: "top"});
   });
   });
</script>
    
answered by 08.05.2018 в 20:37