Home › Forums › JavaScript › jQuery Animated Progress Bar › Re: jQuery Animated Progress Bar
June 23, 2013 at 8:10 am
#139961
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