Jquery .next() not working
<p>I have table structure with the following.</p>

<pre><code>&lt;td class="backgroundimage"&gt;&lt;img src="02.jpg" border="0" class="foregroundimage"&gt;&lt;/td&gt;
&lt;td class="backgroundimage"&gt;&lt;img src="03.jpg" border="0" class="foregroundimage"&gt;&lt;/td&gt;
</code></pre>

<p>I am trying to get each img src within my table by doing this. </p>

<pre><code>$('.backgroundImage').each(function(index){
    var oldImage = $(this).next("img").attr('src');

    alert(oldImage);
});
</code></pre>

<p>This alerts undefined. What have I done wrong? Am I using <code>.next()</code> wrong?</p>
