[jQuery] How to memorize a "class" change?

[jQuery] How to memorize a "class" change?


I am removing&adding a class to a DIV. What is the best way to
memorize this change for the application before it is resetting itself
while going through the loop again? Thank you!