Bootstrap 4 Multi-range
Bootstrap 4 Multi-range plugin
Multi-range slider plugin allows to create more ranges than one. It's easy to use and customizable.
Basic Bootstrap 4 version
<form class="multi-range-field my-5 pb-5">
<input id="multi" class="multi-range" type="range" />
</form>
$('#multi').mdbRange({
single: {
active: true,
multi: {
active: true,
rangeLength: 1
},
}
});
Above is an example template for a Multi-range in the Bootstrap 4 version based on jQuery. V4 is an older version of Bootstrap and we discourage implementing it in new projects.
Below you will find the same component but in the latest, more modern Bootstrap 5. We encourage you to use the v5 version instead, the v5 is more lightweight, more reliable and based on pure JavaScript instead of jQuery.
This page only compares the two version, you can find full documentation - with multiple options & API details via one of the links below:
Bootstrap v5 - full documentation
Bootstrap v4 - full documentation
Basic Bootstrap 5 version
<label class="form-label" for="customRange1">Example range</label>
<div data-mdb-range-init class="range">
<input type="range" class="form-range" id="customRange1" />
</div>