[jQuery] jQuery DOM reference problem

[jQuery] jQuery DOM reference problem

Hi, I am pretty new to jQuery. I like to cache jQuery selector, i.e, the DOM references.
But when to clean up the cache is tricky. I just wonder if there is any way to validate
the DOM reference directly and know if the page is refreshed or updated.
Thanks in advance,
John