Topic: How can I import the javascript module?
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
Open
Specification of the issue
- User: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.5.10
- Device: laptop
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No
Tags
Related topics
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