1

I am initialing my jquery slider with the following code:

$('.slider').slider({
       range: true,
       values: [0, 5],
       min: 0,
       max: 80,
       disabled: true
  });

I then checked the value

var test = $('.slider').slider("option", "disabled");
//returns true

I can still use the slider (change the value). I have multiple sliders on the page with the same class name. Not sure if that would cause an issue. I want to disable them all so they are just showing the value they are assigned.

4

0 回答 0