Bootstrap Sliders

Our Bootstrap Sliders (customised noUiSlider) refers to a lightweight JavaScript range slider library. The slider offers a wide selection of options and settings and is compatible with a ton of (touch) devices, including those running iOS, Android, Windows 8/8.1/10, Windows Phone 8.1 and Windows Mobile 10.
Keep reading our Bootstrap Sliders examples and learn how to use this plugin.


Usage

In order to use this plugin on your page you will need to include the following script in the “Optional JS” area from the page’s footer:

<script src="/assets/js/plugins/nouislider.min.js"></script>

Examples

Slider


<div id="sliderRegular" class="slider"></div>

Range slider


<div id="sliderDouble" class="slider slider-info"></div>

Initialization

Simply copy one of the code examples demonstrated below and include it in your page. Afterwards, you can modify the slider’s values with the ones you need.

// Sliders for demo purpose
var slider = document.getElementById('sliderRegular');

noUiSlider.create(slider, {
  start: 40,
  connect: [true, false],
  range: {
    min: 0,
    max: 100
  }
});

var slider2 = document.getElementById('sliderDouble');

noUiSlider.create(slider2, {
  start: [20, 60],
  connect: true,
  range: {
    min: 0,
    max: 100
  }
});