Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- unsetting/restting jQuery CSS


sssweb - 5:17 pm on Dec 18, 2012 (gmt 0)


What is the best way to remove CSS properties that have been set via jQuery?

I have code like this:

$("#block).animate({top: "+=100px"});

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:

$("#block).css({"top": 100});

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?


Thread source:: http://www.webmasterworld.com/javascript/4529367.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com