I have use Bootstrap range slider i have 2 questions where i am totally stuck.
my question is how can i select reverse range like i have a slider with values 1 to 10 then i have to select 9 to 3 how can i do that?
Here, i have a slider with month range i want to select like oct - feb how can i do that???
And the another question is how can i add labels of my two handles?
Here is my html code,
<input id="ex1" type="hidden" data-clear-delay="true" data-provide="slider" data-slider-selection="none" data-slider-value="[0,100]" data-slider-ticks="[1,2,3,4,5,6,7,8,9,10,11,12]" data-slider-ticks-labels='["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]' data-slider-ticks-positions="[0, 9.09, 18.18, 27.27, 36.36, 45.45, 54.54, 63.63, 72.72, 81.81, 90.90, 100]" data-val="true" name="prefered_travel_period" value="" />
and the javascript is,
jQuery(function($) {
$('#ex1').slider({
formatter: function(value) {
return ;
},
id: "slider12c",
labelledby:["min","max"]
});
});
Please help me out of this, thank you in advance.
In order to support selecting month ranges across new year, you could simply make a slider across two generic years, instead of just covering the range of months only over one generic year.
E.g.:
It is always a point of opinion what is "intuitive", but I think this is better than any inverse concept, e.g. like "please select the months you do NOT want to use".