Well suppose I have a progress bar in html and I have a script that clicks on a certain object the value of progress increases by +1, as I would for when that value reached 10 the maximum value of the bar increased to 100?
<progress id="pg" value="0" max="10" ></progress>
$('#store').click(function () {
click++;
document.getElementById('pg').value = click;
});