javascriptjqueryangularjsbootstrap-slider

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


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/


Solution

  • Try this:

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