Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Changing the max value after the slider has loaded #365

Answered by andreruffert
Overbord asked this question in Q&A
Discussion options

You must be logged in to vote

👉 https://rangeslider.js.org/#usage

// Update all rangeslider instances for all
// e.g. $('input[type="range"]') elements.
// Usefull if you changed some attributes e.g. `min` or `max` etc.
$('input[type="range"]').rangeslider('update', true);

Also this codepen for programmatic attribute changes should help.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andreruffert
Comment options

Answer selected by andreruffert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants