Hello, I’ve added a progress bar to my website. Currently i sell juices, and would like customers to see a progress bar that progress as they add juices to their cart. The target value is 21, but i am a little confused on how to set the progress value to the number of items that is currently in cart. Right the javascript for my bar reads as follows. Looking for what function I can create to replace the progress value with a user input element.
$w.onReady(function () {
// Set the target value as 21
$w('#progressBar2').targetValue = 21;
// Set the progress as 20
$w('#progressBar2').value = 20;
});