Set jQuery slider value dynamically -


how can set slider value dynamically? here current code:

 $( "#slider-range-max" ).slider({   range: "max",   min: 1,   max:61,    step: 1,   slide: function( event, ui ) {      var val = ui.value;    if(val > 10){       ui.value = ui.value + 3;    //   $(this).slider('option','max',500);   } 

and after value change once time (value bounce 10 13 , 14,15,16... after) need 10,13,16,19,etc. doing wrond? when try ui.value = ui.value*ui.value works excellent (121, 144, 169, 196, etc.)

haven't forget close if statement whith "}" ?

edit : have tried :

$("#slider").slider('value',50); 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -