Wednesday, May 11, 2016

NiceAdmin and bootstrap-switch.js style issue - Fixed - No Style applied to switch

I have been Googling for a couple of days to find a solution to this issue. The NiceAdmin demo clearly show the BootStrapSwitch having styles applied, but using the same code and styles, it is not working on our server.
Only I go this instead of the switch:



I checked many solutions that are shown, but none of them worked. The error in JS is as below:

TypeError: $(...).bootstrapSwitch is not a function
$('.switch')['bootstrapSwitch']();