Topic: $(...).chips is not a function

dab213 premium asked 2 years ago

Hi, i'm newbie with MDB and I'm trying to implementation a simple Chips, but I have the following error:

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

I know I forgot to import some file, but I don't know which one.

My code:

<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <title>Material Design for Bootstrap</title>
  <!-- MDB icon -->
  <link rel="icon" href="img/mdb-favicon.ico" type="image/x-icon">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="">
  <!-- Google Fonts Roboto -->
  <link rel="stylesheet" href=",400,500,700&display=swap">
  <!-- Bootstrap core CSS -->
  <link rel="stylesheet" href="css/bootstrap.min.css">
  <!-- Material Design Bootstrap -->
  <link rel="stylesheet" href="css/mdb.min.css">
  <!-- Your custom styles (optional) -->
  <link rel="stylesheet" href="css/style.css">

  <!-- Start your project here-->  
    <div class="chips chips-placeholder"></div>
  <!-- End your project here-->

  <!-- jQuery -->
  <script type="text/javascript" src="js/jquery.min.js"></script>
  <!-- Bootstrap tooltips -->
  <script type="text/javascript" src="js/popper.min.js"></script>
  <!-- Bootstrap core JavaScript -->
  <script type="text/javascript" src="js/bootstrap.min.js"></script>
  <!-- MDB core JavaScript -->
  <script type="text/javascript" src="js/mdb.min.js"></script>
  <!-- Your custom scripts (optional) -->
  <script type="text/javascript">
    $(document).ready(function() { 


SKONSOFT priority answered 2 years ago


I have the same problem with MDB 5.

i followed the documentation and tried to create a chip but got the same error.

I'm new with MDB. I use jquery 3.6.



Uncaught TypeError: $(...).chips is not a function

Have you any example of code or documentation for how to add chips programatically ?


Michał Duszak staff commented 2 years ago

Issue moved to

Marcin Luczak staff answered 2 years ago


Everything is ok with your imports, the problem is you are using syntax from the MDB5 Standard inside the older MDB4 version. If you would like this syntax to work I would recommend using it inside your MDB5 package, otherwise please use documentation for the older version of the chips component.

Keep coding, Marcin

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: MDB4 4.19.2
  • Device: PC
  • Browser: Chrome
  • OS: Linux/Ubuntu
  • Provided sample code: No
  • Provided link: No