How to give color for tick-lables on selection in Bootstrap slider?

615 Views Asked by At

I have a Bootstrap slider with ticks and tick labels,here I need to change the color of tick labels when I clicked on the particular label.

The below plunker link shows the code that I tried:

http://embed.plnkr.co/patfGe/

1

There are 1 best solutions below

1
On BEST ANSWER

Try this:

$('.slider-tick-label').click(function(){
  $('.slider-tick-label').css('color','black');
  $(this).css('color','lightblue');
});