title: jQuery Slider - update value
body: <p>I am using the following to update the slider value:</p>
  
  <pre><code>$("#slider").slider("option", "value", intervalCounter);
  </code></pre>
  
  <p>It works for single change, however if I use it in an animation it stops the animation</p>
  
  <pre><code>intervalCounter = 100;
  if (intervalCounter &lt; intervalMax) {
      ......
  }
  ++intervalCounter;
  $("#slider").slider("option", "value", intervalCounter);
  </code></pre>
  
  <p>I would appreciate your suggestions, thanks in advance.</p>