I believe the data is stored in the jQuery object itself, under
jQuery.cache, so it would persist for just that page load, if you want
to store data in a cookie you can use the jQuery cookie plugin:

http://plugins.jquery.com/project/cookie

Rik

2008/11/22 donb <[EMAIL PROTECTED]>:
>
> What does .data() store, how long does it persist and where in the DOM
> does it get stored?  The doc page makes no mention beyond it stores
> and retrieves.  Looking at jquery.js sheds no light on it (for me)
> either.  Doesn't appear to be in a cookie.
>
> On Nov 22, 6:58 am, "Rik Lomas" <[EMAIL PROTECTED]> wrote:
>> You could use the $.data() function to store any data when
>> adding/removing classes:
>>
>> http://docs.jquery.com/Internals/jQuery.data
>>
>> Rik
>>
>> 2008/11/22 lukas <[EMAIL PROTECTED]>:
>>
>>
>>
>> > 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!
>>
>> --
>> Rik Lomashttp://rikrikrik.com



-- 
Rik Lomas
http://rikrikrik.com

Reply via email to