How to select second element with JQUERY when clicked on image?
<p>The code below working for only first div. I can't display other divs when i clicked on the other "img"s.
Do you know a method to reach second (next) element?</p>

<pre><code>$(document).ready(function() {

        $('.imgOpenClose').click(function() {
            if ($(this).attr("src") == "images/openTree.gif") {
                $(this).attr("src", "images/closeTree.gif");
                $(this).parent().find('div').eq(0).show();
            }
            else {
                $(this).attr("src", "images/openTree.gif");
                $(this).parent().find('div').eq(0).hide();
            }
        });
});
</code></pre>

<p><img src="http://content.screencast.com/users/uzay95/folders/Jing/media/f055b873-714e-4d29-a605-05dabddd1cee/2009-05-24%5F1455.png" alt="Wanna open table when i clicked on plus images" /></p>

<p><img src="http://content.screencast.com/users/uzay95/folders/Jing/media/289bd853-26e0-43fc-bc2a-c3a21f5837c3/2009-05-24%5F1457.png" alt="And wanna see the table inside this div" /></p>
