I have a progressbar which is being animated in a mouseover event in the following way:
$("#progressbar .ui-progressbar-value").animate({width: 200}, {duration: 3000},'slow')
Then in a mouseout event I want to reset the progressbar to its initial state and then if mouseover is called again the animation must start again.
I've got to the point where I am able to reset the value like this:
('#progressbar').progressbar({value: 0});
But from there on another mouseover does not start the animation again. I thought the problem might be because before the first animation the value is initialized to 1. However, setting it to 1 does not reset the animation at all. Lastly I tried to first reset it to 0 and then set it to 1 as in the initial state without success.