TEY pro asked 5 years ago


Because I can not initialize the calendar if I have it as you say.  
Start your code here
<script type="text/javascript"><script type="text/javascript"> // Data Picker Initialization $('.datepicker').pickadate({ monthsFull: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'], weekdaysShort: ['Dom', 'Lun', 'Mar', 'Mie', 'Jue', 'Vie', 'Sab'], today: 'Hoy', clear: 'Borrar', formatSubmit: 'yyyy/mm/dd' }); </script>

Start your code here
<div class="md-form col-md-4"><div class="md-form col-md-4"> <label for="date-picker-example" class="">Fecha Nacimiento</label> <input placeholder="Selected date" type="text" id="date-picker-example" class="form-control datepicker"> </div>

Start your code here
<!-- JQuery -->
 <script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
 <!-- Bootstrap tooltips -->
 <script type="text/javascript" src="js/popper.min.js"></script>
 <!-- Bootstrap core JavaScript -->
 <script type="text/javascript" src="js/bootstrap.min.js"></script>
 <!-- MDB core JavaScript -->
 <script type="text/javascript" src="js/mdb.min.js"></script>

TEY pro answered 5 years ago


Thank you very much for your help.

Magdalena Obalska free answered 5 years ago


Hey,
use the script code below for initializing date picker and put it at the end of your body tag.


<script>
$('.datepicker').pickadate({ monthsFull: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'], weekdaysShort: ['Dom', 'Lun', 'Mar', 'Mie', 'Jue', 'Vie', 'Sab'], today: 'Hoy', clear: 'Borrar', formatSubmit: 'yyyy/mm/dd' });
</script>



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags