Topic: pickdate and date picker not working (Accidentally deleted original post)

robshelby priority asked 4 years ago

Expected behavior pickdate or date picker works.

Actual behavior

jquery.min.js:2 Uncaught TypeError: $(...).pickdate is not a function
    at HTMLDocument.<anonymous> (myjquery_functions.js:17)
    at e (jquery.min.js:2)
    at t (jquery.min.js:2)

Resources (screenshots, code snippets etc.)

(at the bottom of my index.html)

  <script src=""></script>
  <script src=""></script>
  <script src=""></script>
  <!-- MDB core JavaScript -->
  <script type="text/javascript" src="js/mdb.js"></script>
  <script src=""></script>
<!--TeleRehab JS Files-->
  <script type="text/javascript" src="js/main.js" ></script>
  <script type="text/javascript" src="js/myjquery_functions.js"></script>

mdb.js is loading fine. In my console I can see it's response:

 * Material Design for Bootstrap 4
 * Version: MDB Admin Dashboard 4.8.11
 * Copyright: Material Design for Bootstrap

But it's like it's not looking at mdb.js? As you can see it does say 4.8.11. So datepicker should work. However, not even pickdate works.


Grzegorz Bujański staff commented 4 years ago

Hi. Admin templates use MDB 4.8.11 - new date picker contain syntax introduced in the MDB 4.17.0 and don't work in previous version. Try use pickadate (not pickdate).

robshelby priority commented 4 years ago

Oh! I must be dyslexic. I was seeing 4.8 as greater than 4.17. hah.

I think I do have an order that does have version 4.17+. If I swap out the mdb.js file, would it "just work"?

Grzegorz Bujański staff commented 4 years ago

Yes. A lot of time has passed since 4.8.0 and we've made a lot of changes, but we've also tried to ensure backward compatibility.

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: 4.8.11
  • Device: laptop and phone
  • Browser: chrome
  • OS: Windows, Android, Chrome OS
  • Provided sample code: No
  • Provided link: No