【发布时间】:2017-01-27 12:01:21
【问题描述】:
我在 Bootstrap 切换器插件 (https://github.com/nostalgiaz/bootstrap-switch) 中自定义了一个复选框。如何在切换时使绿色变为红色? 试过这个:
$( ".bootstrap-switch" ).click(function() {
$( this ).toggleClass( "highlight" ); console.log('1111');
});
【问题讨论】:
标签: jquery twitter-bootstrap bootstrap-switch