In my php application I get the numbers of seconds that remains to an event: ex: 6000sec. and the total time since the creation of the event until the end. Ex: 10000sec. I want to do a progress bar that take the seconds and, every second, atualize the progress bar.
Basically, I tried with progressbar(), setInterval()
But i need help to do this.
$(function() {
var initial = 6000 // need to add seconds to this value every second.
$( "#progressbar" ).progressbar({
value: initial,
max: 10000
});
});