Here is what I’m working with. http://jsfiddle.net/HHBN8/1/ I am trying to animate a class when the data comes back as false, and hide the class when the data comes back as true. The animation code works fine by itself, but as soon as I throw it into the function it won’t fire. A couple of things, the document has to be ready for the animation to work, and I’m putting the animation in the same function as the data function because I can’t figure out how to access the variable outside that function. If there is an easier way to do this let me know. Thanks so much for your help, and keep in mind 3 weeks ago I didn’t know what a class was.
Here is what I’m working with. http://jsfiddle.net/HHBN8/1/ I am trying to animate a class
Share
I made some alterations like defining the
Amethod outside of the other one (*this way you do not have to bind it to thewindow.loadevent.demo at http://jsfiddle.net/HHBN8/5/
note : you do not have any html .. so there is nothing to animate.. I added some html in the example..