The percent variable gets “alerted” just fine. But, when I put it in the progressbar function, just defaults to zero. It will work if I hardcode the value i.e. value: 60. How can I make it work with my percent variable? Thanks.
function updateProgress(percent)
{
alert(percent);
$("#progressbar").progressbar({
value: percent
});
}
1 Answer