Bootstrap-Switch options don't take effect
Posted
by
Linda Keating
on Stack Overflow
See other posts from Stack Overflow
or by Linda Keating
Published on 2014-06-03T21:01:07Z
Indexed on
2014/06/03
21:25 UTC
Read the original article
Hit count: 210
I'm using Bootstrap-Switch and the documentation says that options can be passed as an object on initialization. enter link description here
And here is a list of options: enter link description here
So my code looks like this:
var options = {
onText: "Yes",
onColor: 'primary',
offColor: 'danger',
offText: "No",
animate: true,
};
$("[name='radioGroup1']").bootstrapSwitch(options);
And it all switch works fine, but none of the defaults are overwritten by the options.
Anybody got any examples of how this might work? Thanks
© Stack Overflow or respective owner