title: Set jQuery slider value dynamically
body: <p>How can I set slider value dynamically? 
  Here is my current code:</p>
  
  <pre><code> $( "#slider-range-max" ).slider({
    range: "max",
    min: 1,
    max:61,
  
    step: 1,
    slide: function( event, ui ) {
  
      var val = ui.value;
     if(val &gt; 10){
  
       ui.value = ui.value + 3;
  
    //   $(this).slider('option','max',500);
  
  
  }
  </code></pre>
  
  <p>And after that this value change only once time (value bounce from 10 to 13 and to 14,15,16... after) but i need 10,13,16,19,etc.
  what am i doing wrond?
  When I try ui.value = ui.value*ui.value it works excellent (121, 144, 169, 196, etc.) </p>