Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery Animated Progress Bar Re: jQuery Animated Progress Bar

#139961
Malgosia
Participant

Hi! :)
Firstly, you should set Your “Frameworks & Extensions” in JSFiddle to can use jQuery.
After that code starts working like you said. Only first bar is animated properly.
It is becouse you set percent variable once:
var percent = $(‘.progress_bar’).attr(‘title’);

To fix it, iterate through all the bars. You can use “each” function to do this.

See: http://jsfiddle.net/mWdgz/6/

Regards