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="https://apis.google.com/js/platform.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="js/mdb.js"></script>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></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
* https://mdbootstrap.com/
...
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.
Thanks!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- 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
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
(notpickdate
).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.