Currently, I am utilizing jQuery UI slider with 6 points along with 6 divs positioned above the slider. My goal is to align the points in the middle of each div located above the slider.
Is there a method available to specify the position of values in jQuery UI slider?
For reference, here is an example of what I am working on: jsfiddle
$('#slider').slider({
value:1,
min: 1,
max: 6,
step: 1,
slide: function(event, ui) {
}
});
<div id="assesment-filter">
<div class="assesments-wrapper">
<div id="1" class="assesment">1</div>
<div id="2" class="assesment">2</div>
<div id="3" class="assesment">3</div>
<div id="4" class="assesment">4</div>
<div id="5" class="assesment">5</div>
<div id="6" class="assesment">6</div>
</div>
<div id="slider"></div>
</div>
.assesments-wrapper {
height: 33px;
}
.assesment {
width: 33px;
height: 33px;
background-color: rgb(219,219,219);
line-height: 33px;
float: left;
text-align: center;
vertical-align: middle;
color: white;
font-size: 18px;
border-right: 1px solid white;
border-bottom: 1px solid white;
}
.assesment:hover {
cursor: pointer;
}
.ui-slider-handle{
display: block;
position: relative;
top: -6px;
width: 15px;
height: 15px;
background-color: #2CBFD9;
border-radius: 50%;
border: 1px solid white;
}
.ui-slider-handle:hover {
cursor: pointer;
}
.ui-slider{
background-color: rgb(219,219,219);
height: 3px;
width: 203px;
margin-bottom: 16px;
}