$.each(status, function (index) { status[index] = '<div id="progressBar'+ index +'"><div></div></div>'; progress(percent, "#progressBar" + index); } });
function progress(percent, $element) { var progressBarWidth = percent * $element.width() / 100; $element.find('div').animate({ width: progressBarWidth }, 500).html(percent.replace('\r\n', '') + "%"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)