I have the following UI slider on my page.
jQuery( document ).ready(function( $ ) {
$( "#slider-payback" ).slider({
range: "min",
value:100,
min: 18,
max: <?php echo json_encode($max_payback); ?>,
step: 6,
slide: function( event, ui ) {
$( "#payback-period" ).val( "" + ui.value )
totalPayableFunc();
monthlyPaymentsFunc();
}
});
$( "#payback-period" ).val( "" + $( "#slider-payback" ).slider( "value" ) );
totalPayableFunc();
monthlyPaymentsFunc();
});
Is it possible to easily add a 'min' and 'max' label on the slider though? I'm yet to attempt this because I'm unsure of the best way to tackle it.
Thanks