Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: datePicker problem initialisation

Grégoire Maria free asked 4 years ago


I need to set on my input a datepicker ( i'm free user )

I have an error in the console : " Uncaught TypeError: $(...).datepicker is not a function "

I've seen the difference between MDB Versions and i have to use the datepicker function with the version 4.19.1

I use CDN for call the MDB libraryI've tried to download the library and use it locally but same issue.

Here is my code, I really don't understand what's wrong i need help : (i use the basic input html )

<!-- JQuery -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/js/mdb.min.js"></script>

<script type="text/javascript">
    // Data Picker Initialization
    $('.datepicker').datepicker();
</script>

Marcin Luczak staff answered 4 years ago


Hello Grégoire Maria,

Datepicker https://mdbootstrap.com/docs/jquery/forms/date-picker/ - is an MDB Pro Component for which you need additional content to be downloaded, thus it won't work with the FREE version and you can see appropriate information in the console. You can check pricing for our jQuery products on this page: https://mdbootstrap.com/pricing/jquery/

Best Regards, Marcin



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.1
  • Device: computer
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No