Skip to content

Uncaught TypeError: $(...).bootstrapToggle is not a function #61

@nurullahguc

Description

@nurullahguc

How can i fix it?

Here is my code;

`

<script src="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.6.1/js/bootstrap4-toggle.min.js"></script>
                    <input id="chkToggle" type="checkbox" data-toggle="toggle">

                    <script>
                        $(document).ready(function () {
                           setTimeout(function () {
                               $('body #chkToggle').bootstrapToggle('on', true);
                                alert('asd');
                           }, 2000);

                        })
                    </script>

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions