Currently, I'm working on customizing a jQuery slider. My goal is to achieve the same functionality as the jQuery UI slider where you can set a max value like "2500" and the slider will smoothly adjust without going outside of the specified div or screen boundaries.
You can view my current slider implementation here: http://jsfiddle.net/uHNsv/
#slider {
/* CSS styles for the slider */
}
/* More CSS styles... */
However, my slider doesn't behave like I want it to. It jumps to 100% instead of staying within the designated area. Adjusting the width only makes it extend beyond the screen horizontally.
Is there a way to ensure that the slider stops at the maximum value while remaining inside the filled div?