$(function() {
$( ".sli3" ).slider({
range: "min",
value: 50,
min: 0,
max: 100,
slide: function( event, ui ) {
$( ".sli3_f" ).text($(this).val( ui.value+"%" ));
}
});
$( ".sli3_f" ).text($(this).val($( ".sli3" ).slider( "value" )+"%" ));
});
<div class="sli3"><span class="sli3_f"></span></div>
I am trying to change text when the slider moves
nothing happens on the browser.
Any thought?
I don’t believe that the $this.val() is necessary