Sunday, June 2, 2024
 Popular · Latest · Hot · Upcoming
175
rated 0 times [  177] [ 2]  / answers: 1 / hits: 15840  / 13 Years ago, wed, april 27, 2011, 12:00:00

I am trying to display the value of the slider inside the drag handle (slider). Any resouce provided is much appreciated. I am using jQuery 1.5.1



Thanks


More From » jquery

 Answers
137

Are you using jQuery UI Slider ?



If so, this is a solution :



$(#slider).slider({
change: function() {
var value = $(#slider).slider(option,value);
$(#slider).find(.ui-slider-handle).text(value);
},
slide: function() {
var value = $(#slider).slider(option,value);
$(#slider).find(.ui-slider-handle).text(value);
}
});


jsFiddle example here


[#92540] Tuesday, April 26, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cruzs

Total Points: 710
Total Questions: 113
Total Answers: 100

Location: Nepal
Member since Sat, Jul 18, 2020
4 Years ago
cruzs questions
Thu, Nov 26, 20, 00:00, 4 Years ago
Wed, Oct 28, 20, 00:00, 4 Years ago
Wed, Aug 19, 20, 00:00, 4 Years ago
Sun, Aug 2, 20, 00:00, 4 Years ago
;