I am developing a progress bar which html looks like so
<div class="progressbar"><div class="text">%0 Completed</div>
<div class="progressbar_inner"></div>
</div>
and used this jquery codes for it:
$(".progressbar_inner").animate({
width:"20%"
},100,function(){
$(".text").html("%20 Completed");
});
My question is: I want to print percentage of the progress bar when animate started and finished. Like so : %1 Completed %2 Completed and etc. Anyone helps me?