Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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!


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

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