gitbrent / bootstrap4-toggle

Bootstrap 4 Switch Button / Toggle
https://gitbrent.github.io/bootstrap4-toggle/
MIT License
214 stars 67 forks source link

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

Open nurullahguc opened 3 years ago

nurullahguc commented 3 years ago

How can i fix it?

Here is my code;

`

                    <input id="chkToggle" type="checkbox" data-toggle="toggle">

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

                        })
                    </script>

`