I want to increase the width of a progressbar by 10% each time I click on a button:
<div id="#progressBar" style="width:50%"> </div>
I want to increase the width of the progress bar above by 10% when I click on a button.
I tried this but it doesn't work:
$("#increaseButton").click(function() {
$("#progressBar").css("width",$("#div2increase").width + 10 );
});
Please help !
The current width of progress bar can be any value from 0% to 100%. And it's unknown at the time of increasing it by 10%