bootstrap4-toggle
bootstrap4-toggle copied to clipboard
Uncaught TypeError: $(...).bootstrapToggle is not a function
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>
`