| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|unsetting/restting jQuery CSS|
What is the best way to remove CSS properties that have been set via jQuery?
I have code like this:
The way my page works, I don't know how many times the code has run, so when I want to reset, I don't know the exact location of #block. I know I can specifically set it anywhere using:
but I'd rather remove all animate()'s applied to it, letting it revert to its normal place in the page flow. Can I do that?
The obvious seems to work:
unless anyone has a comment.
FYI for others reading this, I just discovered this works too:
(blank string removes any css property: [api.jquery.com...] )
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved