Topic: How can I import the javascript module?
xfl1991 free asked 6 years ago
I just pasted the snippet in the html. but it failed to trigger the time picker. There was an error in the brower telling :
Uncaught TypeError: $(...).pickatime is not a function.
<script>
$('#input_starttime').pickatime({
// 12 or 24 hour
twelvehour: true,
});
</script>
How can I import the javascript module in this case?
I'll appreciate for your help. Thanks!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Opened
Specification of the issue
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.5.10
- Device: laptop
- Browser: Chrome
- OS: Windows
- Provided sample code: Yes
- Provided link: No
Piotr Glejzer staff commented 6 years ago
Hi,
did you paste this script tag with a pickatime function to below script tag with js/mdb.min.js?
That function have above all basic script like jquery/popper/bootstrap/mdb.js
Best,
Piotr