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
This works if you're happy using CSS3 transitions:
JS:
function animateBar(percentage){ $('#innerBox').width(percentage+'%'); }
CSS:
#innerBox{transition: 3s}