Does JavaScript/jQuery always have the latest element or version of that element?
<p>I am writing a userscript that grabs an element with something like:  </p>

<pre><code>var theElement = $('div.someClass:last');
</code></pre>

<p>To grab the last element in the class <code>.someClass</code> so I can parse it.  </p>

<p>This is where my question comes in.  There is another script on this page dynamically adding a new <code>&lt;div class="someClass"&gt;</code> every once in a while.  I want to always have the last element on the page with a class of <code>.someClass</code> selected.  </p>

<p>Will Javascript/jQuery always have the latest element or will I have to manually "refresh" it?</p>
