Skip to content

TypeError: $(...).bsMultiSelect is not a function #56

@sd-evo

Description

@sd-evo

Hello everyone!
I'm trying to use a plugin on Bootstrap v5.3.2 and JQuery 3.7.1

In the head section, I included:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@dashboardcode/bsmultiselect@1.1.18/dist/css/BsMultiSelect.min.css">
<script src="/public/js/jquery-3.7.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.0/dist/umd/popper.min.js"></script>
<script src="/public/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@dashboardcode/bsmultiselect@1.1.18/dist/js/BsMultiSelect.min.js"></script>

Then I created a "select" with id="day_of_week" in the body and added at the bottom of the page:

<script>
    $("#day_of_week").bsMultiSelect();
</script>

However, I'm getting an error: "Uncaught TypeError: $(...).bsMultiSelect is not a function"
What could be the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions