function circleStat(elem1, pvalue, ccolor) {
var cx = document.getElementById(elem1);
var percentage = 0;
var dataval = pvalue;
}
Hi,
I am using this above mentioned code in one of my javascript projects. I would like to increase the value of percentage from 0 to datavalue (which is equal to pvalue parameter in the above mentioned function).
And from that I would like the increasing value of percentage to be updated constantly. So, I can use it in another variable of this same function. So, how to get the updated value of percentage from setInterval?
I know callback functions, but don't know how to use it on this one. Please help... Thanks in advance...