Topic: materialSelect is not a function in snippets

Kneidels pro asked 4 years ago


I am trying to setup a demo, not getting the materialSelect to work even on the most basic example:

https://mdbootstrap.com/snippets/jquery/moshe/2521018?view=standard#js-tab-view

Console shows:

$(...).materialSelect is not a function

What am i doing wrong?

Thanks


Kneidels pro answered 4 years ago


Answering this for future users: You need the document ready function -

$(document).ready(function() {
    $("#frequencyType").materialSelect();
 });


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.1
  • Device: PC
  • Browser: Firefox
  • OS: Win10
  • Provided sample code: No
  • Provided link: Yes