How would you form an if statement in a jQuery function, then call that function using a .click() handler?
I seem to be having trouble making this work:
I need to be able to perform a check on a css property of a particular element, and get the JavaScript to perform an animation based on the returned value.
The animation is working fine on its own, I just can’t seem to get the conditional to work; I’m convinced I have the syntax wrong or something but Dreamweaver isn’t throwing up any errors.
Any help is appreciated, and I can provide the script (as it currently is) if needed. Also I’m a complete novice at this…
Many thanks, jellies :D
Using Fluther
or