Question

i got a jquery ui slider and i want to show the value of the slider in a tooltip, (in handler of the slider). so far im getting the value when the slider stops, but i want the tooltip to update the value when the slider is dragged. is there a way to get jquery UI slider current position, not the value?

Was it helpful?

Solution

Use the slide function

$( "#slider" ).slider({
    slide: function(event,ui){
        $('#value').text(ui.value);    
    }
});

Example

http://jsfiddle.net/jcMu8/

OTHER TIPS

write a jquery function that is triggered by the slider slide event that replaces the value of the tool tip.

slide: function(event, ui){ //replace value
}

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top