I've customized a checkbox in Bootstrap switcher plugin (https://github.com/nostalgiaz/bootstrap-switch). How to make green color change to red on toggle? Tried this:
$( ".bootstrap-switch" ).click(function() {
$( this ).toggleClass( "highlight" ); console.log('1111');
});
My example: http://codepen.io/rinatoptimus/pen/JEOjjp