jQuery with div is not working
<p>I have to create one expandable /collapseable panel in jQuery, and facing some issues.
code
HTML</p>

<pre><code>           &lt;div&gt;
              &lt;img src="8A7FA0A1FFEC5443785B9B29AF7629.jpg" alt="" /&gt;
                &lt;div&gt;
                  &lt;span&gt;
                    Hello
                &lt;/span&gt;
               &lt;ul class="myul"&gt;
                  &lt;li&gt;one&lt;/li&gt;
              &lt;li&gt;Two&lt;/li&gt;
                  &lt;/ul&gt;
               &lt;/div&gt;
              &lt;img src="8A7FA0A1FFEC5443785B9B29AF7629.jpg" alt="" /&gt;
                &lt;div&gt;
                  &lt;span&gt;
                   r u there
               &lt;/span&gt;
              &lt;ul class="myul"&gt;
                &lt;li&gt;three&lt;/li&gt;
                    &lt;li&gt;four&lt;/li&gt;
                    &lt;/ul&gt;
                 &lt;/div&gt;
                 &lt;/div&gt;
</code></pre>

<p>jQuerycode:</p>

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

                $(".myul").hide();

                  $("img").click(function() {
                     $(this).next(".myul").slideToggle(600);
                     });
                   });
</code></pre>

<p>when I delete the inner div tag </p>

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

<p>its working fine, but with the innere div its not working.Can somebody help.
Thanks.
EDIT:
if the code is something like:</p>

<pre><code>        &lt;li class="first"&gt;
      &lt;span&gt;

        &lt;img src="8A7FA0A1FFEC5443785B9B29AF7629.jpg" width="15" height="15" alt="arrow" /&gt;
      &lt;/span&gt;
      &lt;div class="mydiv"&gt;
        &lt;h3&gt;
          ...
        &lt;/h3&gt;
        &lt;span&gt;.... &lt;/span&gt;
          &lt;span&gt;.... &lt;/span&gt;


        &lt;ul class="myul"&gt;
           .......
</code></pre>

<p>then i have tried ur code..but its not working.am i missing something.</p>
