Skip to content Skip to sidebar Skip to footer

Bootstrap Switch Js Being Called, But Doing Nothing

I'm using bootstrap and jQuery, but I'm currently trying to add in Bootstrap Switch. I'm starting to go insance because I cannot get it to work. From inspecting the element, it loo

Solution 1:

Try to wrap your code inside DOM ready handler $(function() {...}); to make sure all of your DOM elements are loaded properly before executing your jQuery code:

$(function() {
    $("#famous-people-switch").bootstrapSwitch();
});

Post a Comment for "Bootstrap Switch Js Being Called, But Doing Nothing"