Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有刻度和刻度标签的引导滑块,在这里我需要在单击特定标签时更改刻度标签的颜色。
下面的 plunker 链接显示了我尝试过的代码:
http://embed.plnkr.co/patfGe/
尝试这个:
$('.slider-tick-label').click(function(){ $('.slider-tick-label').css('color','black'); $(this).css('color','lightblue'); });