I have:
var check=new Switchery(elem, {
size: 'small',
color: '#c00',
secondaryColor: '#b7b7b7',
jackColor: '#fff',
jackSecondaryColor: '#f3f3f3',
className: 'switchery'
});
and I want all colouring parameters for the two states have to be in external css file. As expected:
.switchery {
color: #c00;
secondaryColor: #b7b7b7;
jackColor: #fff;
jackSecondaryColor: #f3f3f3;
}
didn't work. Any ideas?
I solve this with Jquery, all the switchery next to the checkbox is changed.
by chanhging its background color, and put color of switchery to none
more documentation :
https://api.jquery.com/siblings/