Jquery Slider Set Value after Slide -


I am trying to set the value of the slider in the slide event. This is my code:

  $ (document) .ready (function () {$ ("# slider"). Slider ({min: 0, maximum: 10000, step: 1, / / Use it to determine the amount of interval values: [0], // Default border slide: function (Event, UI) {var slider = $ ("# slider"). Slider ({Live: True}); Slider .slider ('value', 500);}});});   

What am I missing? I can not decorate and set the value of the slider.

Edit: OK now I can set the value of the slider but it is very fast. I want him to gradually set my price. Here's my edited code:

  $ (document) .ready (function () {$ ("# slider"). Slider ({Minimum: 0, Max: 10000, Animate: "slow", step: 1, // Use the value of each interval / value: [0] // default range change: function (event, UI) {$ ("# slider"). ('Value ', 500);}}};});   

Can I move it gradually to 500 rather than install it?

Thanks

context :

Code:

   

$ (Document) .ready (function () {$ ('# slider)'). Slider ({minimum: 0, maximum: 10000, // value "sharp", "normal", "slow", or period can be used. Animate: 1500, step: 1, // initial value is 500 value : 500, Animate: true, change: function () {// This set timeout slider will be allowed to be animated correctly.SetTimeout ("$ ('# slider'). Slider ('value', 500);" , 350);}}); On page load, animate the slider to 500. $ ('# Slider'). Slider ('value', 500);}); Status update: SO poster needs to be replaced instead of stop: event : There is an event for other specific requirements in the UI slider, but when it is used, no visual difference is seen.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -