how do jQuery object references work?
<p>I have a hypothetical question, something where by knowledge is a wee bit fuzzy. </p>

<p>If I have a jquery object: <code>Common.$footer = $('.footer');</code></p>

<p>And I declare it when the footer doesn't exist, but then the footer gets added later, will the reference work then?</p>

<p>Or a similar scenario if I have did the same when the footer was showing, then it removed, and I used it.</p>

<p>I'm wondering if its ok to setup some references early on in my code, that I can use just later and test if object exists with:</p>

<pre><code>Common.$footer[0] &amp;&amp; MyFuncCall();
</code></pre>

<p>Also, if I add a element in later on, is it ok to just grab it with $('.my-dynmically-added-el') ? or do I need to use .live or something?</p>
