I'm attempting to use bootstrap switch in a project. The documentation found here isn't clear on how to properly pass options. I tried the following without any luck:
$("[name='my-checkbox']").bootstrapSwitch({
'size': 'small',
'onColor': 'success'
});
This however, works:
$("[name='my-checkbox']").bootstrapSwitch('size', 'small');
$("[name='my-checkbox']").bootstrapSwitch('onColor', 'success');
surely this isn't the way the developers intended for it to get used? what's the correct way to pass multiple options?
It is working fine for me, check the next working example. Maybe you include the css or js in wrong order?