I have never used the jQuery UI progress bar, but I'd like to make a function that would basically load the jQuery UI progress bar, run it for 5 seconds and then execute another function.
ie.
function test() {
show the jQuery UI progress bar for 5 seconds in div ("progressbar")
after 5 seconds has passed..... execute test2()
}
How can this be done?
You can do it like this:
With animation:
JSFiddle Example