'Refire' jQuery every second?
<p>The following code adds a class to the last div:</p>

<pre><code>$(".mydivs:last").addClass('added');
</code></pre>

<p>This works on page load but the divs are in an animation, so the order changes. Is there a way to make the code run every second, so the class is added to the last div each time? </p>

<p>For me I dont think it matters that eventually every div will have the new class. </p>

<p>Thanks </p>
