How do I increase widht with%? It put this code I made, it increases, but it's in px, and I wanted it to increase in percentage.
var progressBar = $(".progress-bar");
setInterval(addProgress, 1000);
function addProgress() {
var width = progressBar.width() + 10;
if(progressBar.width() <= 100%) {
progressBar.width(width);
}
}
You can see that that% w / o% there, is not right, of the error. How do I do this?