title: bootstrap slider - display upper and lower range values separately
body: <p>I am using bootstrap-slider.js (<a href="https://github.com/seiyria/bootstrap-slider" rel="nofollow">https://github.com/seiyria/bootstrap-slider</a>) to implement a range slider like example 2 here <a href="http://seiyria.github.io/bootstrap-slider/" rel="nofollow">http://seiyria.github.io/bootstrap-slider/</a></p>
  
  <p>I have the slider working but I don't like the tooltip and want to display the upper and lower values at each end of the slider instead, updating them dynamically when the upper or lower sliders are moved. The problem I have is that the values from the slider come as a comma separated list - i.e. 1,1000 (upper,lower), so I get both values at each end of the slider. I need to display the lower value to the left of the slider and the upper value to the right of the slider. </p>
  
  <p>So far I have got it to work using the following code, but it shows both upper and lower values at each end of the slider. I have tried trimming the values but can't get it to work. Can anyone suggest a way that I can just display one max/min value at either end of the slider?</p>
  
  <p>My code:</p>
  
  <p>HTML:</p>
  
  <pre><code>        &lt;h4 id="search-slider-lower-value"&gt;£&lt;span id="search-sliderLowerSliderVal"&gt;100&lt;/span&gt;&lt;/h4&gt;
          &lt;input id="search-slider" type="text" class="span2" value="" data-slider-tooltip="hide" data-slider-min="100" data-slider-max="1000" data-slider-step="5" data-slider-value="[100,1000]"/&gt; 
          &lt;h4 id="search-slider-upper-value"&gt;£&lt;span id="search-sliderUpperSliderVal"&gt;1000&lt;/span&gt;&lt;/h4&gt;         
  </code></pre>
  
  <p>Jquery:</p>
  
  <pre><code>$("#search-slider").slider();
      $("#search-slider").on("slide", function(slideEvt) {
          $("#search-sliderLowerSliderVal").text(slideEvt.value);
          $("#search-sliderUpperSliderVal").text(slideEvt.value);
      });
  </code></pre>