Another jQuery next() issue
<p>My HTML:</p>

<pre><code>&lt;div id="gallery-thumbs"&gt;

    &lt;div class="thumb"&gt;
         &lt;img alt="2" src="gallery/thumbs/2.jpg" class="thumbimg hand" /&gt;
    &lt;/div&gt;

    &lt;div class="thumb"&gt;
         &lt;img alt="4" src="gallery/thumbs/4.jpg" class="thumbimg hand" /&gt;
    &lt;/div&gt;

    &lt;div class="thumb"&gt;
         &lt;img alt="100" src="gallery/thumbs/100.jpg" class="thumbimg hand" /&gt;
    &lt;/div&gt;

&lt;/div&gt;
</code></pre>

<p>JavaScript:</p>

<pre><code>nextphotoid = $('#gallery-thumbs img[alt="4"]').parent().parent().next("div.thumb img").attr('alt');
</code></pre>

<p>This should return 100, as that's the value of the <code>alt</code> attribute of the next image after the image with <code>alt='4'</code>, but it's not working - why not?</p>

<p>I've tried various combinations of <code>NextAll</code> etc. I've read around similar questions but can't get mine working - I'm obviously missing something simple.</p>
