I am currently working on a jQuery slider feature for my project. My goal is to extract the value from the slider, display it in a div element, and store it as a global JavaScript variable. It needs to perform these actions immediately as the slider is being moved. Here's what I have accomplished so far:
<div id="tabs-1">
<p>Brush Size</p>
<div id="slider"></div>
<div id="Total">0</div>
</div>
var brushSize;
var slider = $('#slider').slider({
steps: 100,
handle: $('.knob'),
animate:'true',
min:1,
max:100,
startValue: 1,
change: function(e,ui){
brushSize = ui;
}
At this point, I'm unsure of how to proceed as the code is not functioning correctly without any error messages.
You can view a working example at the following link: