How can I import the javascript module?


Topic: How can I import the javascript module?

xfl1991 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!


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


Please insert min. 20 characters.

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