Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  10] [ 5]  / answers: 1 / hits: 22733  / 12 Years ago, tue, january 22, 2013, 12:00:00

I am using jquery slider , i want to all sliders current values when one slider is changing



Slider code:



var slider = jQuery(<div class='slider'></div>).insertAfter(select)
.slider({
min : 0,
max : 4,
range : min,
value : select[0].selectedIndex + 1,
slide : function(event, ui) {


},
change: function(event, ui) {


}
});


I tried this:



        change: function(event, ui) { 

jQuery(.minbeds).each(function(){
alert(jQuery(this).val());
});
}


but whatever the slider values, it is only alerting the value 1.



enter



UPDATE:



   jQuery(.slider).slider(value); 


will give the current slider value when change , but how can i get all slider values .


More From » jquery

 Answers
12

Use the following line to access the current values of the slider:



var val = $('#slider').slider(option, value);

[#80715] Sunday, January 20, 2013, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nia

Total Points: 461
Total Questions: 97
Total Answers: 93

Location: Turks and Caicos Islands
Member since Sun, Mar 7, 2021
3 Years ago
;