I trying to animate a div and I try to use some value retreived somewhere else, I know the value to be correct because I\'ve printed out the output... so I\'m wondering why
Try adding the units text like this:
function animateBar(percentage) { $('#innerBox').animate({width: percentage+"px"}, 3000); }