Sep 27, 2011

Never store a HTML element in a variable

Store its ID instead.

Because if its HTML source is moved or replaced, the previous element is destroyed and the new element is created with the same ID.